From b0e791f4a62ce5493e335a4e49b0fa9d9ecb4388 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 21 Jul 2021 17:14:06 -0400 Subject: [PATCH] chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Date (#3079) --- test/built-ins/Date/S15.9.2.1_A1.js | 28 +++--- test/built-ins/Date/S15.9.2.1_A2.js | 28 +++--- test/built-ins/Date/S15.9.3.1_A1_T1.js | 96 +++++++++---------- test/built-ins/Date/S15.9.3.1_A1_T2.js | 96 +++++++++---------- test/built-ins/Date/S15.9.3.1_A1_T3.js | 96 +++++++++---------- test/built-ins/Date/S15.9.3.1_A1_T4.js | 96 +++++++++---------- test/built-ins/Date/S15.9.3.1_A1_T5.js | 96 +++++++++---------- test/built-ins/Date/S15.9.3.1_A1_T6.js | 96 +++++++++---------- test/built-ins/Date/S15.9.3.1_A2_T1.js | 72 +++++++------- test/built-ins/Date/S15.9.3.1_A2_T2.js | 72 +++++++------- test/built-ins/Date/S15.9.3.1_A2_T3.js | 72 +++++++------- test/built-ins/Date/S15.9.3.1_A2_T4.js | 72 +++++++------- test/built-ins/Date/S15.9.3.1_A2_T5.js | 72 +++++++------- test/built-ins/Date/S15.9.3.1_A2_T6.js | 72 +++++++------- test/built-ins/Date/S15.9.3.1_A3_T1.1.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T1.2.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T2.1.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T2.2.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T3.1.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T3.2.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T4.1.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T4.2.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T5.1.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T5.2.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T6.1.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A3_T6.2.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A4_T1.js | 8 +- test/built-ins/Date/S15.9.3.1_A4_T2.js | 12 +-- test/built-ins/Date/S15.9.3.1_A4_T3.js | 16 ++-- test/built-ins/Date/S15.9.3.1_A4_T4.js | 20 ++-- test/built-ins/Date/S15.9.3.1_A4_T5.js | 24 ++--- test/built-ins/Date/S15.9.3.1_A4_T6.js | 28 +++--- test/built-ins/Date/S15.9.3.2_A1_T1.js | 64 ++++++------- test/built-ins/Date/S15.9.3.2_A2_T1.js | 48 +++++----- test/built-ins/Date/S15.9.3.2_A3_T1.1.js | 16 ++-- test/built-ins/Date/S15.9.3.2_A3_T1.2.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_A4.js | 2 +- test/built-ins/Date/S15.9.4_A5.js | 4 +- 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 | 4 +- 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_T1.js | 2 +- test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js | 4 +- test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js | 4 +- test/built-ins/Date/construct_with_date.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 | 4 +- 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_T1.js | 2 +- test/built-ins/Date/parse/S15.9.4.2_A3_T2.js | 4 +- test/built-ins/Date/parse/S15.9.4.2_A3_T3.js | 4 +- .../Date/prototype/S15.9.4.1_A1_T1.js | 2 +- .../Date/prototype/S15.9.4.1_A1_T2.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 +- .../prototype/constructor/S15.9.5.1_A1_T1.js | 2 +- .../prototype/constructor/S15.9.5.1_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/constructor/S15.9.5.1_A3_T2.js | 4 +- .../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 | 4 +- .../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_T1.js | 2 +- .../prototype/getDate/S15.9.5.14_A3_T2.js | 4 +- .../prototype/getDate/S15.9.5.14_A3_T3.js | 4 +- .../Date/prototype/getDay/S15.9.5.16_A1_T1.js | 2 +- .../Date/prototype/getDay/S15.9.5.16_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../Date/prototype/getDay/S15.9.5.16_A3_T2.js | 4 +- .../Date/prototype/getDay/S15.9.5.16_A3_T3.js | 4 +- .../prototype/getFullYear/S15.9.5.10_A1_T1.js | 2 +- .../prototype/getFullYear/S15.9.5.10_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getFullYear/S15.9.5.10_A3_T2.js | 4 +- .../prototype/getFullYear/S15.9.5.10_A3_T3.js | 4 +- .../prototype/getHours/S15.9.5.18_A1_T1.js | 2 +- .../prototype/getHours/S15.9.5.18_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getHours/S15.9.5.18_A3_T2.js | 4 +- .../prototype/getHours/S15.9.5.18_A3_T3.js | 4 +- .../getMilliseconds/S15.9.5.24_A1_T1.js | 2 +- .../getMilliseconds/S15.9.5.24_A1_T2.js | 4 +- .../getMilliseconds/S15.9.5.24_A1_T3.js | 4 +- .../getMilliseconds/S15.9.5.24_A2_T1.js | 4 +- .../getMilliseconds/S15.9.5.24_A3_T1.js | 2 +- .../getMilliseconds/S15.9.5.24_A3_T2.js | 4 +- .../getMilliseconds/S15.9.5.24_A3_T3.js | 4 +- .../prototype/getMinutes/S15.9.5.20_A1_T1.js | 2 +- .../prototype/getMinutes/S15.9.5.20_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getMinutes/S15.9.5.20_A3_T2.js | 4 +- .../prototype/getMinutes/S15.9.5.20_A3_T3.js | 4 +- .../prototype/getMonth/S15.9.5.12_A1_T1.js | 2 +- .../prototype/getMonth/S15.9.5.12_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getMonth/S15.9.5.12_A3_T2.js | 4 +- .../prototype/getMonth/S15.9.5.12_A3_T3.js | 4 +- .../prototype/getSeconds/S15.9.5.22_A1_T1.js | 2 +- .../prototype/getSeconds/S15.9.5.22_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getSeconds/S15.9.5.22_A3_T2.js | 4 +- .../prototype/getSeconds/S15.9.5.22_A3_T3.js | 4 +- .../Date/prototype/getTime/S15.9.5.9_A1_T1.js | 2 +- .../Date/prototype/getTime/S15.9.5.9_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../Date/prototype/getTime/S15.9.5.9_A3_T2.js | 4 +- .../Date/prototype/getTime/S15.9.5.9_A3_T3.js | 4 +- .../getTimezoneOffset/S15.9.5.26_A1_T1.js | 2 +- .../getTimezoneOffset/S15.9.5.26_A1_T2.js | 4 +- .../getTimezoneOffset/S15.9.5.26_A1_T3.js | 4 +- .../getTimezoneOffset/S15.9.5.26_A2_T1.js | 4 +- .../getTimezoneOffset/S15.9.5.26_A3_T1.js | 2 +- .../getTimezoneOffset/S15.9.5.26_A3_T2.js | 4 +- .../getTimezoneOffset/S15.9.5.26_A3_T3.js | 4 +- .../prototype/getUTCDate/S15.9.5.15_A1_T1.js | 2 +- .../prototype/getUTCDate/S15.9.5.15_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getUTCDate/S15.9.5.15_A3_T2.js | 4 +- .../prototype/getUTCDate/S15.9.5.15_A3_T3.js | 4 +- .../prototype/getUTCDay/S15.9.5.17_A1_T1.js | 2 +- .../prototype/getUTCDay/S15.9.5.17_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getUTCDay/S15.9.5.17_A3_T2.js | 4 +- .../prototype/getUTCDay/S15.9.5.17_A3_T3.js | 4 +- .../getUTCFullYear/S15.9.5.11_A1_T1.js | 2 +- .../getUTCFullYear/S15.9.5.11_A1_T2.js | 4 +- .../getUTCFullYear/S15.9.5.11_A1_T3.js | 4 +- .../getUTCFullYear/S15.9.5.11_A2_T1.js | 4 +- .../getUTCFullYear/S15.9.5.11_A3_T1.js | 2 +- .../getUTCFullYear/S15.9.5.11_A3_T2.js | 4 +- .../getUTCFullYear/S15.9.5.11_A3_T3.js | 4 +- .../prototype/getUTCHours/S15.9.5.19_A1_T1.js | 2 +- .../prototype/getUTCHours/S15.9.5.19_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getUTCHours/S15.9.5.19_A3_T2.js | 4 +- .../prototype/getUTCHours/S15.9.5.19_A3_T3.js | 4 +- .../getUTCMilliseconds/S15.9.5.25_A1_T1.js | 2 +- .../getUTCMilliseconds/S15.9.5.25_A1_T2.js | 4 +- .../getUTCMilliseconds/S15.9.5.25_A1_T3.js | 4 +- .../getUTCMilliseconds/S15.9.5.25_A2_T1.js | 4 +- .../getUTCMilliseconds/S15.9.5.25_A3_T1.js | 2 +- .../getUTCMilliseconds/S15.9.5.25_A3_T2.js | 4 +- .../getUTCMilliseconds/S15.9.5.25_A3_T3.js | 4 +- .../getUTCMinutes/S15.9.5.21_A1_T1.js | 2 +- .../getUTCMinutes/S15.9.5.21_A1_T2.js | 4 +- .../getUTCMinutes/S15.9.5.21_A1_T3.js | 4 +- .../getUTCMinutes/S15.9.5.21_A2_T1.js | 4 +- .../getUTCMinutes/S15.9.5.21_A3_T1.js | 2 +- .../getUTCMinutes/S15.9.5.21_A3_T2.js | 4 +- .../getUTCMinutes/S15.9.5.21_A3_T3.js | 4 +- .../prototype/getUTCMonth/S15.9.5.13_A1_T1.js | 2 +- .../prototype/getUTCMonth/S15.9.5.13_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/getUTCMonth/S15.9.5.13_A3_T2.js | 4 +- .../prototype/getUTCMonth/S15.9.5.13_A3_T3.js | 4 +- .../getUTCSeconds/S15.9.5.23_A1_T1.js | 2 +- .../getUTCSeconds/S15.9.5.23_A1_T2.js | 4 +- .../getUTCSeconds/S15.9.5.23_A1_T3.js | 4 +- .../getUTCSeconds/S15.9.5.23_A2_T1.js | 4 +- .../getUTCSeconds/S15.9.5.23_A3_T1.js | 2 +- .../getUTCSeconds/S15.9.5.23_A3_T2.js | 4 +- .../getUTCSeconds/S15.9.5.23_A3_T3.js | 4 +- .../prototype/setDate/S15.9.5.36_A1_T1.js | 2 +- .../prototype/setDate/S15.9.5.36_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/setDate/S15.9.5.36_A3_T2.js | 4 +- .../prototype/setDate/S15.9.5.36_A3_T3.js | 4 +- .../prototype/setFullYear/S15.9.5.40_A1_T1.js | 2 +- .../prototype/setFullYear/S15.9.5.40_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/setFullYear/S15.9.5.40_A3_T2.js | 4 +- .../prototype/setFullYear/S15.9.5.40_A3_T3.js | 4 +- .../prototype/setHours/S15.9.5.34_A1_T1.js | 2 +- .../prototype/setHours/S15.9.5.34_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/setHours/S15.9.5.34_A3_T2.js | 4 +- .../prototype/setHours/S15.9.5.34_A3_T3.js | 4 +- .../setMilliseconds/S15.9.5.28_A1_T1.js | 2 +- .../setMilliseconds/S15.9.5.28_A1_T2.js | 4 +- .../setMilliseconds/S15.9.5.28_A1_T3.js | 4 +- .../setMilliseconds/S15.9.5.28_A2_T1.js | 4 +- .../setMilliseconds/S15.9.5.28_A3_T1.js | 2 +- .../setMilliseconds/S15.9.5.28_A3_T2.js | 4 +- .../setMilliseconds/S15.9.5.28_A3_T3.js | 4 +- .../prototype/setMinutes/S15.9.5.32_A1_T1.js | 2 +- .../prototype/setMinutes/S15.9.5.32_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/setMinutes/S15.9.5.32_A3_T2.js | 4 +- .../prototype/setMinutes/S15.9.5.32_A3_T3.js | 4 +- .../prototype/setMonth/S15.9.5.38_A1_T1.js | 2 +- .../prototype/setMonth/S15.9.5.38_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/setMonth/S15.9.5.38_A3_T2.js | 4 +- .../prototype/setMonth/S15.9.5.38_A3_T3.js | 4 +- .../prototype/setSeconds/S15.9.5.30_A1_T1.js | 2 +- .../prototype/setSeconds/S15.9.5.30_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/setSeconds/S15.9.5.30_A3_T2.js | 4 +- .../prototype/setSeconds/S15.9.5.30_A3_T3.js | 4 +- .../prototype/setTime/S15.9.5.27_A1_T1.js | 2 +- .../prototype/setTime/S15.9.5.27_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/setTime/S15.9.5.27_A3_T2.js | 4 +- .../prototype/setTime/S15.9.5.27_A3_T3.js | 4 +- .../prototype/setUTCDate/S15.9.5.37_A1_T1.js | 2 +- .../prototype/setUTCDate/S15.9.5.37_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/setUTCDate/S15.9.5.37_A3_T2.js | 4 +- .../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 | 4 +- .../setUTCFullYear/S15.9.5.41_A1_T3.js | 4 +- .../setUTCFullYear/S15.9.5.41_A2_T1.js | 4 +- .../setUTCFullYear/S15.9.5.41_A3_T1.js | 2 +- .../setUTCFullYear/S15.9.5.41_A3_T2.js | 4 +- .../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 | 4 +- .../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_T1.js | 2 +- .../prototype/setUTCHours/S15.9.5.35_A3_T2.js | 4 +- .../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 | 4 +- .../setUTCMilliseconds/S15.9.5.29_A1_T3.js | 4 +- .../setUTCMilliseconds/S15.9.5.29_A2_T1.js | 4 +- .../setUTCMilliseconds/S15.9.5.29_A3_T1.js | 2 +- .../setUTCMilliseconds/S15.9.5.29_A3_T2.js | 4 +- .../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 | 4 +- .../setUTCMinutes/S15.9.5.33_A1_T3.js | 4 +- .../setUTCMinutes/S15.9.5.33_A2_T1.js | 4 +- .../setUTCMinutes/S15.9.5.33_A3_T1.js | 2 +- .../setUTCMinutes/S15.9.5.33_A3_T2.js | 4 +- .../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 | 4 +- .../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_T1.js | 2 +- .../prototype/setUTCMonth/S15.9.5.39_A3_T2.js | 4 +- .../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 | 4 +- .../setUTCSeconds/S15.9.5.31_A1_T3.js | 4 +- .../setUTCSeconds/S15.9.5.31_A2_T1.js | 4 +- .../setUTCSeconds/S15.9.5.31_A3_T1.js | 2 +- .../setUTCSeconds/S15.9.5.31_A3_T2.js | 4 +- .../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 | 4 +- .../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_T1.js | 2 +- .../prototype/toDateString/S15.9.5.3_A3_T2.js | 4 +- .../prototype/toDateString/S15.9.5.3_A3_T3.js | 4 +- .../toLocaleDateString/S15.9.5.6_A1_T1.js | 2 +- .../toLocaleDateString/S15.9.5.6_A1_T2.js | 4 +- .../toLocaleDateString/S15.9.5.6_A1_T3.js | 4 +- .../toLocaleDateString/S15.9.5.6_A2_T1.js | 4 +- .../toLocaleDateString/S15.9.5.6_A3_T1.js | 2 +- .../toLocaleDateString/S15.9.5.6_A3_T2.js | 4 +- .../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 | 4 +- .../toLocaleString/S15.9.5.5_A1_T3.js | 4 +- .../toLocaleString/S15.9.5.5_A2_T1.js | 4 +- .../toLocaleString/S15.9.5.5_A3_T1.js | 2 +- .../toLocaleString/S15.9.5.5_A3_T2.js | 4 +- .../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 | 4 +- .../toLocaleTimeString/S15.9.5.7_A1_T3.js | 4 +- .../toLocaleTimeString/S15.9.5.7_A2_T1.js | 4 +- .../toLocaleTimeString/S15.9.5.7_A3_T1.js | 2 +- .../toLocaleTimeString/S15.9.5.7_A3_T2.js | 4 +- .../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 | 4 +- .../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_T1.js | 2 +- .../prototype/toString/S15.9.5.2_A3_T2.js | 4 +- .../prototype/toString/S15.9.5.2_A3_T3.js | 4 +- .../prototype/toTimeString/S15.9.5.4_A1_T1.js | 2 +- .../prototype/toTimeString/S15.9.5.4_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/toTimeString/S15.9.5.4_A3_T2.js | 4 +- .../prototype/toTimeString/S15.9.5.4_A3_T3.js | 4 +- .../prototype/toUTCString/S15.9.5.42_A1_T1.js | 2 +- .../prototype/toUTCString/S15.9.5.42_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../prototype/toUTCString/S15.9.5.42_A3_T2.js | 4 +- .../prototype/toUTCString/S15.9.5.42_A3_T3.js | 4 +- .../Date/prototype/valueOf/S15.9.5.8_A1_T1.js | 2 +- .../Date/prototype/valueOf/S15.9.5.8_A1_T2.js | 4 +- .../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_T1.js | 2 +- .../Date/prototype/valueOf/S15.9.5.8_A3_T2.js | 4 +- .../Date/prototype/valueOf/S15.9.5.8_A3_T3.js | 4 +- .../Date/prototype/valueOf/S9.4_A3_T1.js | 24 ++--- .../Date/prototype/valueOf/S9.4_A3_T2.js | 4 +- 397 files changed, 1399 insertions(+), 1399 deletions(-) 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 24722c8ddd..40ca9cbd79 100644 --- a/test/built-ins/Date/S15.9.2.1_A1.js +++ b/test/built-ins/Date/S15.9.2.1_A1.js @@ -12,70 +12,70 @@ description: Checking type of returned value //CHECK#1 if (typeof Date() !== "string") { - $ERROR('#1: typeof Date() should be "string", actual is ' + (typeof Date())); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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))); + throw new Test262Error('#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 4d627a8091..3b06dfb0c9 100644 --- a/test/built-ins/Date/S15.9.2.1_A2.js +++ b/test/built-ins/Date/S15.9.2.1_A2.js @@ -23,70 +23,70 @@ function isEqual(d1, d2) { //CHECK#1 if (!isEqual(Date(), (new Date()).toString())) { - $ERROR('#1: Date() is equal to (new Date()).toString()'); + throw new Test262Error('#1: Date() is equal to (new Date()).toString()'); } //CHECK#2 if (!isEqual(Date(1), (new Date()).toString())) { - $ERROR('#2: Date(1) is equal to (new Date()).toString()'); + throw new Test262Error('#2: Date(1) is equal to (new Date()).toString()'); } //CHECK#3 if (!isEqual(Date(1970, 1), (new Date()).toString())) { - $ERROR('#3: Date(1970, 1) is equal to (new Date()).toString()'); + throw new Test262Error('#3: Date(1970, 1) is equal to (new Date()).toString()'); } //CHECK#4 if (!isEqual(Date(1970, 1, 1), (new Date()).toString())) { - $ERROR('#4: Date(1970, 1, 1) is equal to (new Date()).toString()'); + throw new Test262Error('#4: Date(1970, 1, 1) is equal to (new Date()).toString()'); } //CHECK#5 if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) { - $ERROR('#5: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); + throw new Test262Error('#5: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); } //CHECK#6 if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) { - $ERROR('#7: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); + throw new Test262Error('#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())) { - $ERROR('#8: Date(1970, 1, 1, 1, 0) is equal to (new Date()).toString()'); + throw new Test262Error('#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())) { - $ERROR('#9: Date(1970, 1, 1, 1, 0, 0) is equal to (new Date()).toString()'); + throw new Test262Error('#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())) { - $ERROR('#10: Date(1970, 1, 1, 1, 0, 0, 0) is equal to (new Date()).toString()'); + throw new Test262Error('#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())) { - $ERROR('#11: Date(Number.NaN) is equal to (new Date()).toString()'); + throw new Test262Error('#11: Date(Number.NaN) is equal to (new Date()).toString()'); } //CHECK#12 if (!isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString())) { - $ERROR('#12: Date(Number.POSITIVE_INFINITY) is equal to (new Date()).toString()'); + throw new Test262Error('#12: Date(Number.POSITIVE_INFINITY) is equal to (new Date()).toString()'); } //CHECK#13 if (!isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString())) { - $ERROR('#13: Date(Number.NEGATIVE_INFINITY) is equal to (new Date()).toString()'); + throw new Test262Error('#13: Date(Number.NEGATIVE_INFINITY) is equal to (new Date()).toString()'); } //CHECK#14 if (!isEqual(Date(undefined), (new Date()).toString())) { - $ERROR('#14: Date(undefined) is equal to (new Date()).toString()'); + throw new Test262Error('#14: Date(undefined) is equal to (new Date()).toString()'); } //CHECK#15 if (!isEqual(Date(null), (new Date()).toString())) { - $ERROR('#15: Date(null) is equal to (new Date()).toString()'); + throw new Test262Error('#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 7e6578b059..7e3934fb4b 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 @@ -10,217 +10,217 @@ description: 2 arguments, (year, month) ---*/ if (typeof new Date(1899, 11) !== "object") { - $ERROR("#1.1: typeof new Date(1899, 11) should be 'object'"); + throw new Test262Error("#1.1: typeof new Date(1899, 11) should be 'object'"); } if (new Date(1899, 11) === undefined) { - $ERROR("#1.2: new Date(1899, 11) should not be undefined"); + throw new Test262Error("#1.2: new Date(1899, 11) should not be undefined"); } var x13 = new Date(1899, 11); if (typeof x13 !== "object") { - $ERROR("#1.3: typeof new Date(1899, 11) should be 'object'"); + throw new Test262Error("#1.3: typeof new Date(1899, 11) should be 'object'"); } var x14 = new Date(1899, 11); if (x14 === undefined) { - $ERROR("#1.4: new Date(1899, 11) should not be undefined"); + throw new Test262Error("#1.4: new Date(1899, 11) should not be undefined"); } if (typeof new Date(1899, 12) !== "object") { - $ERROR("#2.1: typeof new Date(1899, 12) should be 'object'"); + throw new Test262Error("#2.1: typeof new Date(1899, 12) should be 'object'"); } if (new Date(1899, 12) === undefined) { - $ERROR("#2.2: new Date(1899, 12) should not be undefined"); + throw new Test262Error("#2.2: new Date(1899, 12) should not be undefined"); } var x23 = new Date(1899, 12); if (typeof x23 !== "object") { - $ERROR("#2.3: typeof new Date(1899, 12) should be 'object'"); + throw new Test262Error("#2.3: typeof new Date(1899, 12) should be 'object'"); } var x24 = new Date(1899, 12); if (x24 === undefined) { - $ERROR("#2.4: new Date(1899, 12) should not be undefined"); + throw new Test262Error("#2.4: new Date(1899, 12) should not be undefined"); } if (typeof new Date(1900, 0) !== "object") { - $ERROR("#3.1: typeof new Date(1900, 0) should be 'object'"); + throw new Test262Error("#3.1: typeof new Date(1900, 0) should be 'object'"); } if (new Date(1900, 0) === undefined) { - $ERROR("#3.2: new Date(1900, 0) should not be undefined"); + throw new Test262Error("#3.2: new Date(1900, 0) should not be undefined"); } var x33 = new Date(1900, 0); if (typeof x33 !== "object") { - $ERROR("#3.3: typeof new Date(1900, 0) should be 'object'"); + throw new Test262Error("#3.3: typeof new Date(1900, 0) should be 'object'"); } var x34 = new Date(1900, 0); if (x34 === undefined) { - $ERROR("#3.4: new Date(1900, 0) should not be undefined"); + throw new Test262Error("#3.4: new Date(1900, 0) should not be undefined"); } if (typeof new Date(1969, 11) !== "object") { - $ERROR("#4.1: typeof new Date(1969, 11) should be 'object'"); + throw new Test262Error("#4.1: typeof new Date(1969, 11) should be 'object'"); } if (new Date(1969, 11) === undefined) { - $ERROR("#4.2: new Date(1969, 11) should not be undefined"); + throw new Test262Error("#4.2: new Date(1969, 11) should not be undefined"); } var x43 = new Date(1969, 11); if (typeof x43 !== "object") { - $ERROR("#4.3: typeof new Date(1969, 11) should be 'object'"); + throw new Test262Error("#4.3: typeof new Date(1969, 11) should be 'object'"); } var x44 = new Date(1969, 11); if (x44 === undefined) { - $ERROR("#4.4: new Date(1969, 11) should not be undefined"); + throw new Test262Error("#4.4: new Date(1969, 11) should not be undefined"); } if (typeof new Date(1969, 12) !== "object") { - $ERROR("#5.1: typeof new Date(1969, 12) should be 'object'"); + throw new Test262Error("#5.1: typeof new Date(1969, 12) should be 'object'"); } if (new Date(1969, 12) === undefined) { - $ERROR("#5.2: new Date(1969, 12) should not be undefined"); + throw new Test262Error("#5.2: new Date(1969, 12) should not be undefined"); } var x53 = new Date(1969, 12); if (typeof x53 !== "object") { - $ERROR("#5.3: typeof new Date(1969, 12) should be 'object'"); + throw new Test262Error("#5.3: typeof new Date(1969, 12) should be 'object'"); } var x54 = new Date(1969, 12); if (x54 === undefined) { - $ERROR("#5.4: new Date(1969, 12) should not be undefined"); + throw new Test262Error("#5.4: new Date(1969, 12) should not be undefined"); } if (typeof new Date(1970, 0) !== "object") { - $ERROR("#6.1: typeof new Date(1970, 0) should be 'object'"); + throw new Test262Error("#6.1: typeof new Date(1970, 0) should be 'object'"); } if (new Date(1970, 0) === undefined) { - $ERROR("#6.2: new Date(1970, 0) should not be undefined"); + throw new Test262Error("#6.2: new Date(1970, 0) should not be undefined"); } var x63 = new Date(1970, 0); if (typeof x63 !== "object") { - $ERROR("#6.3: typeof new Date(1970, 0) should be 'object'"); + throw new Test262Error("#6.3: typeof new Date(1970, 0) should be 'object'"); } var x64 = new Date(1970, 0); if (x64 === undefined) { - $ERROR("#6.4: new Date(1970, 0) should not be undefined"); + throw new Test262Error("#6.4: new Date(1970, 0) should not be undefined"); } if (typeof new Date(1999, 11) !== "object") { - $ERROR("#7.1: typeof new Date(1999, 11) should be 'object'"); + throw new Test262Error("#7.1: typeof new Date(1999, 11) should be 'object'"); } if (new Date(1999, 11) === undefined) { - $ERROR("#7.2: new Date(1999, 11) should not be undefined"); + throw new Test262Error("#7.2: new Date(1999, 11) should not be undefined"); } var x73 = new Date(1999, 11); if (typeof x73 !== "object") { - $ERROR("#7.3: typeof new Date(1999, 11) should be 'object'"); + throw new Test262Error("#7.3: typeof new Date(1999, 11) should be 'object'"); } var x74 = new Date(1999, 11); if (x74 === undefined) { - $ERROR("#7.4: new Date(1999, 11) should not be undefined"); + throw new Test262Error("#7.4: new Date(1999, 11) should not be undefined"); } if (typeof new Date(1999, 12) !== "object") { - $ERROR("#8.1: typeof new Date(1999, 12) should be 'object'"); + throw new Test262Error("#8.1: typeof new Date(1999, 12) should be 'object'"); } if (new Date(1999, 12) === undefined) { - $ERROR("#8.2: new Date(1999, 12) should not be undefined"); + throw new Test262Error("#8.2: new Date(1999, 12) should not be undefined"); } var x83 = new Date(1999, 12); if (typeof x83 !== "object") { - $ERROR("#8.3: typeof new Date(1999, 12) should be 'object'"); + throw new Test262Error("#8.3: typeof new Date(1999, 12) should be 'object'"); } var x84 = new Date(1999, 12); if (x84 === undefined) { - $ERROR("#8.4: new Date(1999, 12) should not be undefined"); + throw new Test262Error("#8.4: new Date(1999, 12) should not be undefined"); } if (typeof new Date(2000, 0) !== "object") { - $ERROR("#9.1: typeof new Date(2000, 0) should be 'object'"); + throw new Test262Error("#9.1: typeof new Date(2000, 0) should be 'object'"); } if (new Date(2000, 0) === undefined) { - $ERROR("#9.2: new Date(2000, 0) should not be undefined"); + throw new Test262Error("#9.2: new Date(2000, 0) should not be undefined"); } var x93 = new Date(2000, 0); if (typeof x93 !== "object") { - $ERROR("#9.3: typeof new Date(2000, 0) should be 'object'"); + throw new Test262Error("#9.3: typeof new Date(2000, 0) should be 'object'"); } var x94 = new Date(2000, 0); if (x94 === undefined) { - $ERROR("#9.4: new Date(2000, 0) should not be undefined"); + throw new Test262Error("#9.4: new Date(2000, 0) should not be undefined"); } if (typeof new Date(2099, 11) !== "object") { - $ERROR("#10.1: typeof new Date(2099, 11) should be 'object'"); + throw new Test262Error("#10.1: typeof new Date(2099, 11) should be 'object'"); } if (new Date(2099, 11) === undefined) { - $ERROR("#10.2: new Date(2099, 11) should not be undefined"); + throw new Test262Error("#10.2: new Date(2099, 11) should not be undefined"); } var x103 = new Date(2099, 11); if (typeof x103 !== "object") { - $ERROR("#10.3: typeof new Date(2099, 11) should be 'object'"); + throw new Test262Error("#10.3: typeof new Date(2099, 11) should be 'object'"); } var x104 = new Date(2099, 11); if (x104 === undefined) { - $ERROR("#10.4: new Date(2099, 11) should not be undefined"); + throw new Test262Error("#10.4: new Date(2099, 11) should not be undefined"); } if (typeof new Date(2099, 12) !== "object") { - $ERROR("#11.1: typeof new Date(2099, 12) should be 'object'"); + throw new Test262Error("#11.1: typeof new Date(2099, 12) should be 'object'"); } if (new Date(2099, 12) === undefined) { - $ERROR("#11.2: new Date(2099, 12) should not be undefined"); + throw new Test262Error("#11.2: new Date(2099, 12) should not be undefined"); } var x113 = new Date(2099, 12); if (typeof x113 !== "object") { - $ERROR("#11.3: typeof new Date(2099, 12) should be 'object'"); + throw new Test262Error("#11.3: typeof new Date(2099, 12) should be 'object'"); } var x114 = new Date(2099, 12); if (x114 === undefined) { - $ERROR("#11.4: new Date(2099, 12) should not be undefined"); + throw new Test262Error("#11.4: new Date(2099, 12) should not be undefined"); } if (typeof new Date(2100, 0) !== "object") { - $ERROR("#12.1: typeof new Date(2100, 0) should be 'object'"); + throw new Test262Error("#12.1: typeof new Date(2100, 0) should be 'object'"); } if (new Date(2100, 0) === undefined) { - $ERROR("#12.2: new Date(2100, 0) should not be undefined"); + throw new Test262Error("#12.2: new Date(2100, 0) should not be undefined"); } var x123 = new Date(2100, 0); if (typeof x123 !== "object") { - $ERROR("#12.3: typeof new Date(2100, 0) should be 'object'"); + throw new Test262Error("#12.3: typeof new Date(2100, 0) should be 'object'"); } var x124 = new Date(2100, 0); if (x124 === undefined) { - $ERROR("#12.4: new Date(2100, 0) should not be undefined"); + throw new Test262Error("#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 710cae0078..fcc281e384 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 @@ -10,217 +10,217 @@ description: 3 arguments, (year, month, date) ---*/ if (typeof new Date(1899, 11, 31) !== "object") { - $ERROR("#1.1: typeof new Date(1899, 11, 31) should be 'object'"); + throw new Test262Error("#1.1: typeof new Date(1899, 11, 31) should be 'object'"); } if (new Date(1899, 11, 31) === undefined) { - $ERROR("#1.2: new Date(1899, 11, 31) should not be undefined"); + throw new Test262Error("#1.2: new Date(1899, 11, 31) should not be undefined"); } var x13 = new Date(1899, 11, 31); if (typeof x13 !== "object") { - $ERROR("#1.3: typeof new Date(1899, 11, 31) should be 'object'"); + throw new Test262Error("#1.3: typeof new Date(1899, 11, 31) should be 'object'"); } var x14 = new Date(1899, 11, 31); if (x14 === undefined) { - $ERROR("#1.4: new Date(1899, 11, 31) should not be undefined"); + throw new Test262Error("#1.4: new Date(1899, 11, 31) should not be undefined"); } if (typeof new Date(1899, 12, 1) !== "object") { - $ERROR("#2.1: typeof new Date(1899, 12, 1) should be 'object'"); + throw new Test262Error("#2.1: typeof new Date(1899, 12, 1) should be 'object'"); } if (new Date(1899, 12, 1) === undefined) { - $ERROR("#2.2: new Date(1899, 12, 1) should not be undefined"); + throw new Test262Error("#2.2: new Date(1899, 12, 1) should not be undefined"); } var x23 = new Date(1899, 12, 1); if (typeof x23 !== "object") { - $ERROR("#2.3: typeof new Date(1899, 12, 1) should be 'object'"); + throw new Test262Error("#2.3: typeof new Date(1899, 12, 1) should be 'object'"); } var x24 = new Date(1899, 12, 1); if (x24 === undefined) { - $ERROR("#2.4: new Date(1899, 12, 1) should not be undefined"); + throw new Test262Error("#2.4: new Date(1899, 12, 1) should not be undefined"); } if (typeof new Date(1900, 0, 1) !== "object") { - $ERROR("#3.1: typeof new Date(1900, 0, 1) should be 'object'"); + throw new Test262Error("#3.1: typeof new Date(1900, 0, 1) should be 'object'"); } if (new Date(1900, 0, 1) === undefined) { - $ERROR("#3.2: new Date(1900, 0, 1) should not be undefined"); + throw new Test262Error("#3.2: new Date(1900, 0, 1) should not be undefined"); } var x33 = new Date(1900, 0, 1); if (typeof x33 !== "object") { - $ERROR("#3.3: typeof new Date(1900, 0, 1) should be 'object'"); + throw new Test262Error("#3.3: typeof new Date(1900, 0, 1) should be 'object'"); } var x34 = new Date(1900, 0, 1); if (x34 === undefined) { - $ERROR("#3.4: new Date(1900, 0, 1) should not be undefined"); + throw new Test262Error("#3.4: new Date(1900, 0, 1) should not be undefined"); } if (typeof new Date(1969, 11, 31) !== "object") { - $ERROR("#4.1: typeof new Date(1969, 11, 31) should be 'object'"); + throw new Test262Error("#4.1: typeof new Date(1969, 11, 31) should be 'object'"); } if (new Date(1969, 11, 31) === undefined) { - $ERROR("#4.2: new Date(1969, 11, 31) should not be undefined"); + throw new Test262Error("#4.2: new Date(1969, 11, 31) should not be undefined"); } var x43 = new Date(1969, 11, 31); if (typeof x43 !== "object") { - $ERROR("#4.3: typeof new Date(1969, 11, 31) should be 'object'"); + throw new Test262Error("#4.3: typeof new Date(1969, 11, 31) should be 'object'"); } var x44 = new Date(1969, 11, 31); if (x44 === undefined) { - $ERROR("#4.4: new Date(1969, 11, 31) should not be undefined"); + throw new Test262Error("#4.4: new Date(1969, 11, 31) should not be undefined"); } if (typeof new Date(1969, 12, 1) !== "object") { - $ERROR("#5.1: typeof new Date(1969, 12, 1) should be 'object'"); + throw new Test262Error("#5.1: typeof new Date(1969, 12, 1) should be 'object'"); } if (new Date(1969, 12, 1) === undefined) { - $ERROR("#5.2: new Date(1969, 12, 1) should not be undefined"); + throw new Test262Error("#5.2: new Date(1969, 12, 1) should not be undefined"); } var x53 = new Date(1969, 12, 1); if (typeof x53 !== "object") { - $ERROR("#5.3: typeof new Date(1969, 12, 1) should be 'object'"); + throw new Test262Error("#5.3: typeof new Date(1969, 12, 1) should be 'object'"); } var x54 = new Date(1969, 12, 1); if (x54 === undefined) { - $ERROR("#5.4: new Date(1969, 12, 1) should not be undefined"); + throw new Test262Error("#5.4: new Date(1969, 12, 1) should not be undefined"); } if (typeof new Date(1970, 0, 1) !== "object") { - $ERROR("#6.1: typeof new Date(1970, 0, 1) should be 'object'"); + throw new Test262Error("#6.1: typeof new Date(1970, 0, 1) should be 'object'"); } if (new Date(1970, 0, 1) === undefined) { - $ERROR("#6.2: new Date(1970, 0, 1) should not be undefined"); + throw new Test262Error("#6.2: new Date(1970, 0, 1) should not be undefined"); } var x63 = new Date(1970, 0, 1); if (typeof x63 !== "object") { - $ERROR("#6.3: typeof new Date(1970, 0, 1) should be 'object'"); + throw new Test262Error("#6.3: typeof new Date(1970, 0, 1) should be 'object'"); } var x64 = new Date(1970, 0, 1); if (x64 === undefined) { - $ERROR("#6.4: new Date(1970, 0, 1) should not be undefined"); + throw new Test262Error("#6.4: new Date(1970, 0, 1) should not be undefined"); } if (typeof new Date(1999, 11, 31) !== "object") { - $ERROR("#7.1: typeof new Date(1999, 11, 31) should be 'object'"); + throw new Test262Error("#7.1: typeof new Date(1999, 11, 31) should be 'object'"); } if (new Date(1999, 11, 31) === undefined) { - $ERROR("#7.2: new Date(1999, 11, 31) should not be undefined"); + throw new Test262Error("#7.2: new Date(1999, 11, 31) should not be undefined"); } var x73 = new Date(1999, 11, 31); if (typeof x73 !== "object") { - $ERROR("#7.3: typeof new Date(1999, 11, 31) should be 'object'"); + throw new Test262Error("#7.3: typeof new Date(1999, 11, 31) should be 'object'"); } var x74 = new Date(1999, 11, 31); if (x74 === undefined) { - $ERROR("#7.4: new Date(1999, 11, 31) should not be undefined"); + throw new Test262Error("#7.4: new Date(1999, 11, 31) should not be undefined"); } if (typeof new Date(1999, 12, 1) !== "object") { - $ERROR("#8.1: typeof new Date(1999, 12, 1) should be 'object'"); + throw new Test262Error("#8.1: typeof new Date(1999, 12, 1) should be 'object'"); } if (new Date(1999, 12, 1) === undefined) { - $ERROR("#8.2: new Date(1999, 12, 1) should not be undefined"); + throw new Test262Error("#8.2: new Date(1999, 12, 1) should not be undefined"); } var x83 = new Date(1999, 12, 1); if (typeof x83 !== "object") { - $ERROR("#8.3: typeof new Date(1999, 12, 1) should be 'object'"); + throw new Test262Error("#8.3: typeof new Date(1999, 12, 1) should be 'object'"); } var x84 = new Date(1999, 12, 1); if (x84 === undefined) { - $ERROR("#8.4: new Date(1999, 12, 1) should not be undefined"); + throw new Test262Error("#8.4: new Date(1999, 12, 1) should not be undefined"); } if (typeof new Date(2000, 0, 1) !== "object") { - $ERROR("#9.1: typeof new Date(2000, 0, 1) should be 'object'"); + throw new Test262Error("#9.1: typeof new Date(2000, 0, 1) should be 'object'"); } if (new Date(2000, 0, 1) === undefined) { - $ERROR("#9.2: new Date(2000, 0, 1) should not be undefined"); + throw new Test262Error("#9.2: new Date(2000, 0, 1) should not be undefined"); } var x93 = new Date(2000, 0, 1); if (typeof x93 !== "object") { - $ERROR("#9.3: typeof new Date(2000, 0, 1) should be 'object'"); + throw new Test262Error("#9.3: typeof new Date(2000, 0, 1) should be 'object'"); } var x94 = new Date(2000, 0, 1); if (x94 === undefined) { - $ERROR("#9.4: new Date(2000, 0, 1) should not be undefined"); + throw new Test262Error("#9.4: new Date(2000, 0, 1) should not be undefined"); } if (typeof new Date(2099, 11, 31) !== "object") { - $ERROR("#10.1: typeof new Date(2099, 11, 31) should be 'object'"); + throw new Test262Error("#10.1: typeof new Date(2099, 11, 31) should be 'object'"); } if (new Date(2099, 11, 31) === undefined) { - $ERROR("#10.2: new Date(2099, 11, 31) should not be undefined"); + throw new Test262Error("#10.2: new Date(2099, 11, 31) should not be undefined"); } var x103 = new Date(2099, 11, 31); if (typeof x103 !== "object") { - $ERROR("#10.3: typeof new Date(2099, 11, 31) should be 'object'"); + throw new Test262Error("#10.3: typeof new Date(2099, 11, 31) should be 'object'"); } var x104 = new Date(2099, 11, 31); if (x104 === undefined) { - $ERROR("#10.4: new Date(2099, 11, 31) should not be undefined"); + throw new Test262Error("#10.4: new Date(2099, 11, 31) should not be undefined"); } if (typeof new Date(2099, 12, 1) !== "object") { - $ERROR("#11.1: typeof new Date(2099, 12, 1) should be 'object'"); + throw new Test262Error("#11.1: typeof new Date(2099, 12, 1) should be 'object'"); } if (new Date(2099, 12, 1) === undefined) { - $ERROR("#11.2: new Date(2099, 12, 1) should not be undefined"); + throw new Test262Error("#11.2: new Date(2099, 12, 1) should not be undefined"); } var x113 = new Date(2099, 12, 1); if (typeof x113 !== "object") { - $ERROR("#11.3: typeof new Date(2099, 12, 1) should be 'object'"); + throw new Test262Error("#11.3: typeof new Date(2099, 12, 1) should be 'object'"); } var x114 = new Date(2099, 12, 1); if (x114 === undefined) { - $ERROR("#11.4: new Date(2099, 12, 1) should not be undefined"); + throw new Test262Error("#11.4: new Date(2099, 12, 1) should not be undefined"); } if (typeof new Date(2100, 0, 1) !== "object") { - $ERROR("#12.1: typeof new Date(2100, 0, 1) should be 'object'"); + throw new Test262Error("#12.1: typeof new Date(2100, 0, 1) should be 'object'"); } if (new Date(2100, 0, 1) === undefined) { - $ERROR("#12.2: new Date(2100, 0, 1) should not be undefined"); + throw new Test262Error("#12.2: new Date(2100, 0, 1) should not be undefined"); } var x123 = new Date(2100, 0, 1); if (typeof x123 !== "object") { - $ERROR("#12.3: typeof new Date(2100, 0, 1) should be 'object'"); + throw new Test262Error("#12.3: typeof new Date(2100, 0, 1) should be 'object'"); } var x124 = new Date(2100, 0, 1); if (x124 === undefined) { - $ERROR("#12.4: new Date(2100, 0, 1) should not be undefined"); + throw new Test262Error("#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 241c444ac0..ca83e1cf6c 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 @@ -10,217 +10,217 @@ description: 4 arguments, (year, month, date, hours) ---*/ if (typeof new Date(1899, 11, 31, 23) !== "object") { - $ERROR("#1.1: typeof new Date(1899, 11, 31, 23) should be 'object'"); + throw new Test262Error("#1.1: typeof new Date(1899, 11, 31, 23) should be 'object'"); } if (new Date(1899, 11, 31, 23) === undefined) { - $ERROR("#1.2: new Date(1899, 11, 31, 23) should not be undefined"); + throw new Test262Error("#1.2: new Date(1899, 11, 31, 23) should not be undefined"); } var x13 = new Date(1899, 11, 31, 23); if (typeof x13 !== "object") { - $ERROR("#1.3: typeof new Date(1899, 11, 31, 23) should be 'object'"); + throw new Test262Error("#1.3: typeof new Date(1899, 11, 31, 23) should be 'object'"); } var x14 = new Date(1899, 11, 31, 23); if (x14 === undefined) { - $ERROR("#1.4: new Date(1899, 11, 31, 23) should not be undefined"); + throw new Test262Error("#1.4: new Date(1899, 11, 31, 23) should not be undefined"); } if (typeof new Date(1899, 12, 1, 0) !== "object") { - $ERROR("#2.1: typeof new Date(1899, 12, 1, 0) should be 'object'"); + throw new Test262Error("#2.1: typeof new Date(1899, 12, 1, 0) should be 'object'"); } if (new Date(1899, 12, 1, 0) === undefined) { - $ERROR("#2.2: new Date(1899, 12, 1, 0) should not be undefined"); + throw new Test262Error("#2.2: new Date(1899, 12, 1, 0) should not be undefined"); } var x23 = new Date(1899, 12, 1, 0); if (typeof x23 !== "object") { - $ERROR("#2.3: typeof new Date(1899, 12, 1, 0) should be 'object'"); + throw new Test262Error("#2.3: typeof new Date(1899, 12, 1, 0) should be 'object'"); } var x24 = new Date(1899, 12, 1, 0); if (x24 === undefined) { - $ERROR("#2.4: new Date(1899, 12, 1, 0) should not be undefined"); + throw new Test262Error("#2.4: new Date(1899, 12, 1, 0) should not be undefined"); } if (typeof new Date(1900, 0, 1, 0) !== "object") { - $ERROR("#3.1: typeof new Date(1900, 0, 1, 0) should be 'object'"); + throw new Test262Error("#3.1: typeof new Date(1900, 0, 1, 0) should be 'object'"); } if (new Date(1900, 0, 1, 0) === undefined) { - $ERROR("#3.2: new Date(1900, 0, 1, 0) should not be undefined"); + throw new Test262Error("#3.2: new Date(1900, 0, 1, 0) should not be undefined"); } var x33 = new Date(1900, 0, 1, 0); if (typeof x33 !== "object") { - $ERROR("#3.3: typeof new Date(1900, 0, 1, 0) should be 'object'"); + throw new Test262Error("#3.3: typeof new Date(1900, 0, 1, 0) should be 'object'"); } var x34 = new Date(1900, 0, 1, 0); if (x34 === undefined) { - $ERROR("#3.4: new Date(1900, 0, 1, 0) should not be undefined"); + throw new Test262Error("#3.4: new Date(1900, 0, 1, 0) should not be undefined"); } if (typeof new Date(1969, 11, 31, 23) !== "object") { - $ERROR("#4.1: typeof new Date(1969, 11, 31, 23) should be 'object'"); + throw new Test262Error("#4.1: typeof new Date(1969, 11, 31, 23) should be 'object'"); } if (new Date(1969, 11, 31, 23) === undefined) { - $ERROR("#4.2: new Date(1969, 11, 31, 23) should not be undefined"); + throw new Test262Error("#4.2: new Date(1969, 11, 31, 23) should not be undefined"); } var x43 = new Date(1969, 11, 31, 23); if (typeof x43 !== "object") { - $ERROR("#4.3: typeof new Date(1969, 11, 31, 23) should be 'object'"); + throw new Test262Error("#4.3: typeof new Date(1969, 11, 31, 23) should be 'object'"); } var x44 = new Date(1969, 11, 31, 23); if (x44 === undefined) { - $ERROR("#4.4: new Date(1969, 11, 31, 23) should not be undefined"); + throw new Test262Error("#4.4: new Date(1969, 11, 31, 23) should not be undefined"); } if (typeof new Date(1969, 12, 1, 0) !== "object") { - $ERROR("#5.1: typeof new Date(1969, 12, 1, 0) should be 'object'"); + throw new Test262Error("#5.1: typeof new Date(1969, 12, 1, 0) should be 'object'"); } if (new Date(1969, 12, 1, 0) === undefined) { - $ERROR("#5.2: new Date(1969, 12, 1, 0) should not be undefined"); + throw new Test262Error("#5.2: new Date(1969, 12, 1, 0) should not be undefined"); } var x53 = new Date(1969, 12, 1, 0); if (typeof x53 !== "object") { - $ERROR("#5.3: typeof new Date(1969, 12, 1, 0) should be 'object'"); + throw new Test262Error("#5.3: typeof new Date(1969, 12, 1, 0) should be 'object'"); } var x54 = new Date(1969, 12, 1, 0); if (x54 === undefined) { - $ERROR("#5.4: new Date(1969, 12, 1, 0) should not be undefined"); + throw new Test262Error("#5.4: new Date(1969, 12, 1, 0) should not be undefined"); } if (typeof new Date(1970, 0, 1, 0) !== "object") { - $ERROR("#6.1: typeof new Date(1970, 0, 1, 0) should be 'object'"); + throw new Test262Error("#6.1: typeof new Date(1970, 0, 1, 0) should be 'object'"); } if (new Date(1970, 0, 1, 0) === undefined) { - $ERROR("#6.2: new Date(1970, 0, 1, 0) should not be undefined"); + throw new Test262Error("#6.2: new Date(1970, 0, 1, 0) should not be undefined"); } var x63 = new Date(1970, 0, 1, 0); if (typeof x63 !== "object") { - $ERROR("#6.3: typeof new Date(1970, 0, 1, 0) should be 'object'"); + throw new Test262Error("#6.3: typeof new Date(1970, 0, 1, 0) should be 'object'"); } var x64 = new Date(1970, 0, 1, 0); if (x64 === undefined) { - $ERROR("#6.4: new Date(1970, 0, 1, 0) should not be undefined"); + throw new Test262Error("#6.4: new Date(1970, 0, 1, 0) should not be undefined"); } if (typeof new Date(1999, 11, 31, 23) !== "object") { - $ERROR("#7.1: typeof new Date(1999, 11, 31, 23) should be 'object'"); + throw new Test262Error("#7.1: typeof new Date(1999, 11, 31, 23) should be 'object'"); } if (new Date(1999, 11, 31, 23) === undefined) { - $ERROR("#7.2: new Date(1999, 11, 31, 23) should not be undefined"); + throw new Test262Error("#7.2: new Date(1999, 11, 31, 23) should not be undefined"); } var x73 = new Date(1999, 11, 31, 23); if (typeof x73 !== "object") { - $ERROR("#7.3: typeof new Date(1999, 11, 31, 23) should be 'object'"); + throw new Test262Error("#7.3: typeof new Date(1999, 11, 31, 23) should be 'object'"); } var x74 = new Date(1999, 11, 31, 23); if (x74 === undefined) { - $ERROR("#7.4: new Date(1999, 11, 31, 23) should not be undefined"); + throw new Test262Error("#7.4: new Date(1999, 11, 31, 23) should not be undefined"); } if (typeof new Date(1999, 12, 1, 0) !== "object") { - $ERROR("#8.1: typeof new Date(1999, 12, 1, 0) should be 'object'"); + throw new Test262Error("#8.1: typeof new Date(1999, 12, 1, 0) should be 'object'"); } if (new Date(1999, 12, 1, 0) === undefined) { - $ERROR("#8.2: new Date(1999, 12, 1, 0) should not be undefined"); + throw new Test262Error("#8.2: new Date(1999, 12, 1, 0) should not be undefined"); } var x83 = new Date(1999, 12, 1, 0); if (typeof x83 !== "object") { - $ERROR("#8.3: typeof new Date(1999, 12, 1, 0) should be 'object'"); + throw new Test262Error("#8.3: typeof new Date(1999, 12, 1, 0) should be 'object'"); } var x84 = new Date(1999, 12, 1, 0); if (x84 === undefined) { - $ERROR("#8.4: new Date(1999, 12, 1, 0) should not be undefined"); + throw new Test262Error("#8.4: new Date(1999, 12, 1, 0) should not be undefined"); } if (typeof new Date(2000, 0, 1, 0) !== "object") { - $ERROR("#9.1: typeof new Date(2000, 0, 1, 0) should be 'object'"); + throw new Test262Error("#9.1: typeof new Date(2000, 0, 1, 0) should be 'object'"); } if (new Date(2000, 0, 1, 0) === undefined) { - $ERROR("#9.2: new Date(2000, 0, 1, 0) should not be undefined"); + throw new Test262Error("#9.2: new Date(2000, 0, 1, 0) should not be undefined"); } var x93 = new Date(2000, 0, 1, 0); if (typeof x93 !== "object") { - $ERROR("#9.3: typeof new Date(2000, 0, 1, 0) should be 'object'"); + throw new Test262Error("#9.3: typeof new Date(2000, 0, 1, 0) should be 'object'"); } var x94 = new Date(2000, 0, 1, 0); if (x94 === undefined) { - $ERROR("#9.4: new Date(2000, 0, 1, 0) should not be undefined"); + throw new Test262Error("#9.4: new Date(2000, 0, 1, 0) should not be undefined"); } if (typeof new Date(2099, 11, 31, 23) !== "object") { - $ERROR("#10.1: typeof new Date(2099, 11, 31, 23) should be 'object'"); + throw new Test262Error("#10.1: typeof new Date(2099, 11, 31, 23) should be 'object'"); } if (new Date(2099, 11, 31, 23) === undefined) { - $ERROR("#10.2: new Date(2099, 11, 31, 23) should not be undefined"); + throw new Test262Error("#10.2: new Date(2099, 11, 31, 23) should not be undefined"); } var x103 = new Date(2099, 11, 31, 23); if (typeof x103 !== "object") { - $ERROR("#10.3: typeof new Date(2099, 11, 31, 23) should be 'object'"); + throw new Test262Error("#10.3: typeof new Date(2099, 11, 31, 23) should be 'object'"); } var x104 = new Date(2099, 11, 31, 23); if (x104 === undefined) { - $ERROR("#10.4: new Date(2099, 11, 31, 23) should not be undefined"); + throw new Test262Error("#10.4: new Date(2099, 11, 31, 23) should not be undefined"); } if (typeof new Date(2099, 12, 1, 0) !== "object") { - $ERROR("#11.1: typeof new Date(2099, 12, 1, 0) should be 'object'"); + throw new Test262Error("#11.1: typeof new Date(2099, 12, 1, 0) should be 'object'"); } if (new Date(2099, 12, 1, 0) === undefined) { - $ERROR("#11.2: new Date(2099, 12, 1, 0) should not be undefined"); + throw new Test262Error("#11.2: new Date(2099, 12, 1, 0) should not be undefined"); } var x113 = new Date(2099, 12, 1, 0); if (typeof x113 !== "object") { - $ERROR("#11.3: typeof new Date(2099, 12, 1, 0) should be 'object'"); + throw new Test262Error("#11.3: typeof new Date(2099, 12, 1, 0) should be 'object'"); } var x114 = new Date(2099, 12, 1, 0); if (x114 === undefined) { - $ERROR("#11.4: new Date(2099, 12, 1, 0) should not be undefined"); + throw new Test262Error("#11.4: new Date(2099, 12, 1, 0) should not be undefined"); } if (typeof new Date(2100, 0, 1, 0) !== "object") { - $ERROR("#12.1: typeof new Date(2100, 0, 1, 0) should be 'object'"); + throw new Test262Error("#12.1: typeof new Date(2100, 0, 1, 0) should be 'object'"); } if (new Date(2100, 0, 1, 0) === undefined) { - $ERROR("#12.2: new Date(2100, 0, 1, 0) should not be undefined"); + throw new Test262Error("#12.2: new Date(2100, 0, 1, 0) should not be undefined"); } var x123 = new Date(2100, 0, 1, 0); if (typeof x123 !== "object") { - $ERROR("#12.3: typeof new Date(2100, 0, 1, 0) should be 'object'"); + throw new Test262Error("#12.3: typeof new Date(2100, 0, 1, 0) should be 'object'"); } var x124 = new Date(2100, 0, 1, 0); if (x124 === undefined) { - $ERROR("#12.4: new Date(2100, 0, 1, 0) should not be undefined"); + throw new Test262Error("#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 c2993b47fe..88d5ffb261 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 @@ -10,217 +10,217 @@ description: 5 arguments, (year, month, date, hours, minutes) ---*/ if (typeof new Date(1899, 11, 31, 23, 59) !== "object") { - $ERROR("#1.1: typeof new Date(1899, 11, 31, 23, 59) should be 'object'"); + throw new Test262Error("#1.1: typeof new Date(1899, 11, 31, 23, 59) should be 'object'"); } if (new Date(1899, 11, 31, 23, 59) === undefined) { - $ERROR("#1.2: new Date(1899, 11, 31, 23, 59) should not be undefined"); + throw new Test262Error("#1.2: new Date(1899, 11, 31, 23, 59) should not be undefined"); } var x13 = new Date(1899, 11, 31, 23, 59); if (typeof x13 !== "object") { - $ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#1.4: new Date(1899, 11, 31, 23, 59) should not be undefined"); + throw new Test262Error("#1.4: new Date(1899, 11, 31, 23, 59) should not be undefined"); } if (typeof new Date(1899, 12, 1, 0, 0) !== "object") { - $ERROR("#2.1: typeof new Date(1899, 12, 1, 0, 0) should be 'object'"); + throw new Test262Error("#2.1: typeof new Date(1899, 12, 1, 0, 0) should be 'object'"); } if (new Date(1899, 12, 1, 0, 0) === undefined) { - $ERROR("#2.2: new Date(1899, 12, 1, 0, 0) should not be undefined"); + throw new Test262Error("#2.2: new Date(1899, 12, 1, 0, 0) should not be undefined"); } var x23 = new Date(1899, 12, 1, 0, 0); if (typeof x23 !== "object") { - $ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#2.4: new Date(1899, 12, 1, 0, 0) should not be undefined"); + throw new Test262Error("#2.4: new Date(1899, 12, 1, 0, 0) should not be undefined"); } if (typeof new Date(1900, 0, 1, 0, 0) !== "object") { - $ERROR("#3.1: typeof new Date(1900, 0, 1, 0, 0) should be 'object'"); + throw new Test262Error("#3.1: typeof new Date(1900, 0, 1, 0, 0) should be 'object'"); } if (new Date(1900, 0, 1, 0, 0) === undefined) { - $ERROR("#3.2: new Date(1900, 0, 1, 0, 0) should not be undefined"); + throw new Test262Error("#3.2: new Date(1900, 0, 1, 0, 0) should not be undefined"); } var x33 = new Date(1900, 0, 1, 0, 0); if (typeof x33 !== "object") { - $ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#3.4: new Date(1900, 0, 1, 0, 0) should not be undefined"); + throw new Test262Error("#3.4: new Date(1900, 0, 1, 0, 0) should not be undefined"); } if (typeof new Date(1969, 11, 31, 23, 59) !== "object") { - $ERROR("#4.1: typeof new Date(1969, 11, 31, 23, 59) should be 'object'"); + throw new Test262Error("#4.1: typeof new Date(1969, 11, 31, 23, 59) should be 'object'"); } if (new Date(1969, 11, 31, 23, 59) === undefined) { - $ERROR("#4.2: new Date(1969, 11, 31, 23, 59) should not be undefined"); + throw new Test262Error("#4.2: new Date(1969, 11, 31, 23, 59) should not be undefined"); } var x43 = new Date(1969, 11, 31, 23, 59); if (typeof x43 !== "object") { - $ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#4.4: new Date(1969, 11, 31, 23, 59) should not be undefined"); + throw new Test262Error("#4.4: new Date(1969, 11, 31, 23, 59) should not be undefined"); } if (typeof new Date(1969, 12, 1, 0, 0) !== "object") { - $ERROR("#5.1: typeof new Date(1969, 12, 1, 0, 0) should be 'object'"); + throw new Test262Error("#5.1: typeof new Date(1969, 12, 1, 0, 0) should be 'object'"); } if (new Date(1969, 12, 1, 0, 0) === undefined) { - $ERROR("#5.2: new Date(1969, 12, 1, 0, 0) should not be undefined"); + throw new Test262Error("#5.2: new Date(1969, 12, 1, 0, 0) should not be undefined"); } var x53 = new Date(1969, 12, 1, 0, 0); if (typeof x53 !== "object") { - $ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#5.4: new Date(1969, 12, 1, 0, 0) should not be undefined"); + throw new Test262Error("#5.4: new Date(1969, 12, 1, 0, 0) should not be undefined"); } if (typeof new Date(1970, 0, 1, 0, 0) !== "object") { - $ERROR("#6.1: typeof new Date(1970, 0, 1, 0, 0) should be 'object'"); + throw new Test262Error("#6.1: typeof new Date(1970, 0, 1, 0, 0) should be 'object'"); } if (new Date(1970, 0, 1, 0, 0) === undefined) { - $ERROR("#6.2: new Date(1970, 0, 1, 0, 0) should not be undefined"); + throw new Test262Error("#6.2: new Date(1970, 0, 1, 0, 0) should not be undefined"); } var x63 = new Date(1970, 0, 1, 0, 0); if (typeof x63 !== "object") { - $ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#6.4: new Date(1970, 0, 1, 0, 0) should not be undefined"); + throw new Test262Error("#6.4: new Date(1970, 0, 1, 0, 0) should not be undefined"); } if (typeof new Date(1999, 11, 31, 23, 59) !== "object") { - $ERROR("#7.1: typeof new Date(1999, 11, 31, 23, 59) should be 'object'"); + throw new Test262Error("#7.1: typeof new Date(1999, 11, 31, 23, 59) should be 'object'"); } if (new Date(1999, 11, 31, 23, 59) === undefined) { - $ERROR("#7.2: new Date(1999, 11, 31, 23, 59) should not be undefined"); + throw new Test262Error("#7.2: new Date(1999, 11, 31, 23, 59) should not be undefined"); } var x73 = new Date(1999, 11, 31, 23, 59); if (typeof x73 !== "object") { - $ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#7.4: new Date(1999, 11, 31, 23, 59) should not be undefined"); + throw new Test262Error("#7.4: new Date(1999, 11, 31, 23, 59) should not be undefined"); } if (typeof new Date(1999, 12, 1, 0, 0) !== "object") { - $ERROR("#8.1: typeof new Date(1999, 12, 1, 0, 0) should be 'object'"); + throw new Test262Error("#8.1: typeof new Date(1999, 12, 1, 0, 0) should be 'object'"); } if (new Date(1999, 12, 1, 0, 0) === undefined) { - $ERROR("#8.2: new Date(1999, 12, 1, 0, 0) should not be undefined"); + throw new Test262Error("#8.2: new Date(1999, 12, 1, 0, 0) should not be undefined"); } var x83 = new Date(1999, 12, 1, 0, 0); if (typeof x83 !== "object") { - $ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#8.4: new Date(1999, 12, 1, 0, 0) should not be undefined"); + throw new Test262Error("#8.4: new Date(1999, 12, 1, 0, 0) should not be undefined"); } if (typeof new Date(2000, 0, 1, 0, 0) !== "object") { - $ERROR("#9.1: typeof new Date(2000, 0, 1, 0, 0) should be 'object'"); + throw new Test262Error("#9.1: typeof new Date(2000, 0, 1, 0, 0) should be 'object'"); } if (new Date(2000, 0, 1, 0, 0) === undefined) { - $ERROR("#9.2: new Date(2000, 0, 1, 0, 0) should not be undefined"); + throw new Test262Error("#9.2: new Date(2000, 0, 1, 0, 0) should not be undefined"); } var x93 = new Date(2000, 0, 1, 0, 0); if (typeof x93 !== "object") { - $ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#9.4: new Date(2000, 0, 1, 0, 0) should not be undefined"); + throw new Test262Error("#9.4: new Date(2000, 0, 1, 0, 0) should not be undefined"); } if (typeof new Date(2099, 11, 31, 23, 59) !== "object") { - $ERROR("#10.1: typeof new Date(2099, 11, 31, 23, 59) should be 'object'"); + throw new Test262Error("#10.1: typeof new Date(2099, 11, 31, 23, 59) should be 'object'"); } if (new Date(2099, 11, 31, 23, 59) === undefined) { - $ERROR("#10.2: new Date(2099, 11, 31, 23, 59) should not be undefined"); + throw new Test262Error("#10.2: new Date(2099, 11, 31, 23, 59) should not be undefined"); } var x103 = new Date(2099, 11, 31, 23, 59); if (typeof x103 !== "object") { - $ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#10.4: new Date(2099, 11, 31, 23, 59) should not be undefined"); + throw new Test262Error("#10.4: new Date(2099, 11, 31, 23, 59) should not be undefined"); } if (typeof new Date(2099, 12, 1, 0, 0) !== "object") { - $ERROR("#11.1: typeof new Date(2099, 12, 1, 0, 0) should be 'object'"); + throw new Test262Error("#11.1: typeof new Date(2099, 12, 1, 0, 0) should be 'object'"); } if (new Date(2099, 12, 1, 0, 0) === undefined) { - $ERROR("#11.2: new Date(2099, 12, 1, 0, 0) should not be undefined"); + throw new Test262Error("#11.2: new Date(2099, 12, 1, 0, 0) should not be undefined"); } var x113 = new Date(2099, 12, 1, 0, 0); if (typeof x113 !== "object") { - $ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#11.4: new Date(2099, 12, 1, 0, 0) should not be undefined"); + throw new Test262Error("#11.4: new Date(2099, 12, 1, 0, 0) should not be undefined"); } if (typeof new Date(2100, 0, 1, 0, 0) !== "object") { - $ERROR("#12.1: typeof new Date(2100, 0, 1, 0, 0) should be 'object'"); + throw new Test262Error("#12.1: typeof new Date(2100, 0, 1, 0, 0) should be 'object'"); } if (new Date(2100, 0, 1, 0, 0) === undefined) { - $ERROR("#12.2: new Date(2100, 0, 1, 0, 0) should not be undefined"); + throw new Test262Error("#12.2: new Date(2100, 0, 1, 0, 0) should not be undefined"); } var x123 = new Date(2100, 0, 1, 0, 0); if (typeof x123 !== "object") { - $ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#12.4: new Date(2100, 0, 1, 0, 0) should not be undefined"); + throw new Test262Error("#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 09e866eeef..4e2c791cf1 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 @@ -10,217 +10,217 @@ description: 6 arguments, (year, month, date, hours, minutes, seconds) ---*/ if (typeof new Date(1899, 11, 31, 23, 59, 59) !== "object") { - $ERROR("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'"); + throw new Test262Error("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'"); } if (new Date(1899, 11, 31, 23, 59, 59) === undefined) { - $ERROR("#1.2: new Date(1899, 11, 31, 23, 59, 59) should not be undefined"); + throw new Test262Error("#1.2: new Date(1899, 11, 31, 23, 59, 59) should not be undefined"); } var x13 = new Date(1899, 11, 31, 23, 59, 59); if (typeof x13 !== "object") { - $ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59) should not be undefined"); + throw new Test262Error("#1.4: new Date(1899, 11, 31, 23, 59, 59) should not be undefined"); } if (typeof new Date(1899, 12, 1, 0, 0, 0) !== "object") { - $ERROR("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'"); } if (new Date(1899, 12, 1, 0, 0, 0) === undefined) { - $ERROR("#2.2: new Date(1899, 12, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#2.2: new Date(1899, 12, 1, 0, 0, 0) should not be undefined"); } var x23 = new Date(1899, 12, 1, 0, 0, 0); if (typeof x23 !== "object") { - $ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#2.4: new Date(1899, 12, 1, 0, 0, 0) should not be undefined"); } if (typeof new Date(1900, 0, 1, 0, 0, 0) !== "object") { - $ERROR("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'"); } if (new Date(1900, 0, 1, 0, 0, 0) === undefined) { - $ERROR("#3.2: new Date(1900, 0, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#3.2: new Date(1900, 0, 1, 0, 0, 0) should not be undefined"); } var x33 = new Date(1900, 0, 1, 0, 0, 0); if (typeof x33 !== "object") { - $ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#3.4: new Date(1900, 0, 1, 0, 0, 0) should not be undefined"); } if (typeof new Date(1969, 11, 31, 23, 59, 59) !== "object") { - $ERROR("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'"); + throw new Test262Error("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'"); } if (new Date(1969, 11, 31, 23, 59, 59) === undefined) { - $ERROR("#4.2: new Date(1969, 11, 31, 23, 59, 59) should not be undefined"); + throw new Test262Error("#4.2: new Date(1969, 11, 31, 23, 59, 59) should not be undefined"); } var x43 = new Date(1969, 11, 31, 23, 59, 59); if (typeof x43 !== "object") { - $ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59) should not be undefined"); + throw new Test262Error("#4.4: new Date(1969, 11, 31, 23, 59, 59) should not be undefined"); } if (typeof new Date(1969, 12, 1, 0, 0, 0) !== "object") { - $ERROR("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'"); } if (new Date(1969, 12, 1, 0, 0, 0) === undefined) { - $ERROR("#5.2: new Date(1969, 12, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#5.2: new Date(1969, 12, 1, 0, 0, 0) should not be undefined"); } var x53 = new Date(1969, 12, 1, 0, 0, 0); if (typeof x53 !== "object") { - $ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#5.4: new Date(1969, 12, 1, 0, 0, 0) should not be undefined"); } if (typeof new Date(1970, 0, 1, 0, 0, 0) !== "object") { - $ERROR("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'"); } if (new Date(1970, 0, 1, 0, 0, 0) === undefined) { - $ERROR("#6.2: new Date(1970, 0, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#6.2: new Date(1970, 0, 1, 0, 0, 0) should not be undefined"); } var x63 = new Date(1970, 0, 1, 0, 0, 0); if (typeof x63 !== "object") { - $ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#6.4: new Date(1970, 0, 1, 0, 0, 0) should not be undefined"); } if (typeof new Date(1999, 11, 31, 23, 59, 59) !== "object") { - $ERROR("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'"); + throw new Test262Error("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'"); } if (new Date(1999, 11, 31, 23, 59, 59) === undefined) { - $ERROR("#7.2: new Date(1999, 11, 31, 23, 59, 59) should not be undefined"); + throw new Test262Error("#7.2: new Date(1999, 11, 31, 23, 59, 59) should not be undefined"); } var x73 = new Date(1999, 11, 31, 23, 59, 59); if (typeof x73 !== "object") { - $ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59) should not be undefined"); + throw new Test262Error("#7.4: new Date(1999, 11, 31, 23, 59, 59) should not be undefined"); } if (typeof new Date(1999, 12, 1, 0, 0, 0) !== "object") { - $ERROR("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'"); } if (new Date(1999, 12, 1, 0, 0, 0) === undefined) { - $ERROR("#8.2: new Date(1999, 12, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#8.2: new Date(1999, 12, 1, 0, 0, 0) should not be undefined"); } var x83 = new Date(1999, 12, 1, 0, 0, 0); if (typeof x83 !== "object") { - $ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#8.4: new Date(1999, 12, 1, 0, 0, 0) should not be undefined"); } if (typeof new Date(2000, 0, 1, 0, 0, 0) !== "object") { - $ERROR("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'"); } if (new Date(2000, 0, 1, 0, 0, 0) === undefined) { - $ERROR("#9.2: new Date(2000, 0, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#9.2: new Date(2000, 0, 1, 0, 0, 0) should not be undefined"); } var x93 = new Date(2000, 0, 1, 0, 0, 0); if (typeof x93 !== "object") { - $ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#9.4: new Date(2000, 0, 1, 0, 0, 0) should not be undefined"); } if (typeof new Date(2099, 11, 31, 23, 59, 59) !== "object") { - $ERROR("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'"); + throw new Test262Error("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'"); } if (new Date(2099, 11, 31, 23, 59, 59) === undefined) { - $ERROR("#10.2: new Date(2099, 11, 31, 23, 59, 59) should not be undefined"); + throw new Test262Error("#10.2: new Date(2099, 11, 31, 23, 59, 59) should not be undefined"); } var x103 = new Date(2099, 11, 31, 23, 59, 59); if (typeof x103 !== "object") { - $ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59) should not be undefined"); + throw new Test262Error("#10.4: new Date(2099, 11, 31, 23, 59, 59) should not be undefined"); } if (typeof new Date(2099, 12, 1, 0, 0, 0) !== "object") { - $ERROR("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'"); } if (new Date(2099, 12, 1, 0, 0, 0) === undefined) { - $ERROR("#11.2: new Date(2099, 12, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#11.2: new Date(2099, 12, 1, 0, 0, 0) should not be undefined"); } var x113 = new Date(2099, 12, 1, 0, 0, 0); if (typeof x113 !== "object") { - $ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#11.4: new Date(2099, 12, 1, 0, 0, 0) should not be undefined"); } if (typeof new Date(2100, 0, 1, 0, 0, 0) !== "object") { - $ERROR("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'"); } if (new Date(2100, 0, 1, 0, 0, 0) === undefined) { - $ERROR("#12.2: new Date(2100, 0, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#12.2: new Date(2100, 0, 1, 0, 0, 0) should not be undefined"); } var x123 = new Date(2100, 0, 1, 0, 0, 0); if (typeof x123 !== "object") { - $ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0) should not be undefined"); + throw new Test262Error("#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 ab772ad51d..1fda43ba20 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 @@ -10,217 +10,217 @@ description: 7 arguments, (year, month, date, hours, minutes, seconds, ms) ---*/ if (typeof new Date(1899, 11, 31, 23, 59, 59, 999) !== "object") { - $ERROR("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); + throw new Test262Error("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); } if (new Date(1899, 11, 31, 23, 59, 59, 999) === undefined) { - $ERROR("#1.2: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); + throw new Test262Error("#1.2: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); } var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); if (typeof x13 !== "object") { - $ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); + throw new Test262Error("#1.4: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); } if (typeof new Date(1899, 12, 1, 0, 0, 0, 0) !== "object") { - $ERROR("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); } if (new Date(1899, 12, 1, 0, 0, 0, 0) === undefined) { - $ERROR("#2.2: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#2.2: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); } var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); if (typeof x23 !== "object") { - $ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#2.4: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); } if (typeof new Date(1900, 0, 1, 0, 0, 0, 0) !== "object") { - $ERROR("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); } if (new Date(1900, 0, 1, 0, 0, 0, 0) === undefined) { - $ERROR("#3.2: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#3.2: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); } var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); if (typeof x33 !== "object") { - $ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#3.4: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); } if (typeof new Date(1969, 11, 31, 23, 59, 59, 999) !== "object") { - $ERROR("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); + throw new Test262Error("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); } if (new Date(1969, 11, 31, 23, 59, 59, 999) === undefined) { - $ERROR("#4.2: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); + throw new Test262Error("#4.2: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); } var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); if (typeof x43 !== "object") { - $ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); + throw new Test262Error("#4.4: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); } if (typeof new Date(1969, 12, 1, 0, 0, 0, 0) !== "object") { - $ERROR("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); } if (new Date(1969, 12, 1, 0, 0, 0, 0) === undefined) { - $ERROR("#5.2: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#5.2: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); } var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); if (typeof x53 !== "object") { - $ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#5.4: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); } if (typeof new Date(1970, 0, 1, 0, 0, 0, 0) !== "object") { - $ERROR("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); } if (new Date(1970, 0, 1, 0, 0, 0, 0) === undefined) { - $ERROR("#6.2: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#6.2: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); } var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); if (typeof x63 !== "object") { - $ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#6.4: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); } if (typeof new Date(1999, 11, 31, 23, 59, 59, 999) !== "object") { - $ERROR("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); + throw new Test262Error("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); } if (new Date(1999, 11, 31, 23, 59, 59, 999) === undefined) { - $ERROR("#7.2: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); + throw new Test262Error("#7.2: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); } var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); if (typeof x73 !== "object") { - $ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); + throw new Test262Error("#7.4: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); } if (typeof new Date(1999, 12, 1, 0, 0, 0, 0) !== "object") { - $ERROR("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); } if (new Date(1999, 12, 1, 0, 0, 0, 0) === undefined) { - $ERROR("#8.2: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#8.2: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); } var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); if (typeof x83 !== "object") { - $ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#8.4: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); } if (typeof new Date(2000, 0, 1, 0, 0, 0, 0) !== "object") { - $ERROR("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); } if (new Date(2000, 0, 1, 0, 0, 0, 0) === undefined) { - $ERROR("#9.2: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#9.2: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); } var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); if (typeof x93 !== "object") { - $ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#9.4: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); } if (typeof new Date(2099, 11, 31, 23, 59, 59, 999) !== "object") { - $ERROR("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); + throw new Test262Error("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); } if (new Date(2099, 11, 31, 23, 59, 59, 999) === undefined) { - $ERROR("#10.2: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); + throw new Test262Error("#10.2: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); } var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); if (typeof x103 !== "object") { - $ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); + throw new Test262Error("#10.4: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); } if (typeof new Date(2099, 12, 1, 0, 0, 0, 0) !== "object") { - $ERROR("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); } if (new Date(2099, 12, 1, 0, 0, 0, 0) === undefined) { - $ERROR("#11.2: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#11.2: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); } var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); if (typeof x113 !== "object") { - $ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#11.4: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); } if (typeof new Date(2100, 0, 1, 0, 0, 0, 0) !== "object") { - $ERROR("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); } if (new Date(2100, 0, 1, 0, 0, 0, 0) === undefined) { - $ERROR("#12.2: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#12.2: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); } var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); if (typeof x123 !== "object") { - $ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); + throw new Test262Error("#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) { - $ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); + throw new Test262Error("#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 111e5d1ce0..54a7c7313c 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 @@ -12,180 +12,180 @@ description: 2 arguments, (year, month) var x11 = new Date(1899, 11); if (typeof x11.constructor.prototype !== "object") { - $ERROR("#1.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); } var x12 = new Date(1899, 11); if (!Date.prototype.isPrototypeOf(x12)) { - $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); + throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)'); } var x13 = new Date(1899, 11); if (Date.prototype !== x13.constructor.prototype) { - $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); + throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); } var x21 = new Date(1899, 12); if (typeof x21.constructor.prototype !== "object") { - $ERROR("#2.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#2.1: typeof x11.constructor.prototype === 'object'"); } var x22 = new Date(1899, 12); if (!Date.prototype.isPrototypeOf(x22)) { - $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); + throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)'); } var x23 = new Date(1899, 12); if (Date.prototype !== x23.constructor.prototype) { - $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); + throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); } var x31 = new Date(1900, 0); if (typeof x31.constructor.prototype !== "object") { - $ERROR("#3.1: typeof x31.constructor.prototype === 'object'"); + throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); } var x32 = new Date(1900, 0); if (!Date.prototype.isPrototypeOf(x32)) { - $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); + throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)'); } var x33 = new Date(1900, 0); if (Date.prototype !== x33.constructor.prototype) { - $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); + throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); } var x41 = new Date(1969, 11); if (typeof x41.constructor.prototype !== "object") { - $ERROR("#4.1: typeof x41.constructor.prototype === 'object'"); + throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); } var x42 = new Date(1969, 11); if (!Date.prototype.isPrototypeOf(x42)) { - $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); + throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)'); } var x43 = new Date(1969, 11); if (Date.prototype !== x43.constructor.prototype) { - $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); + throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); } var x51 = new Date(1969, 12); if (typeof x51.constructor.prototype !== "object") { - $ERROR("#5.1: typeof x51.constructor.prototype === 'object'"); + throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); } var x52 = new Date(1969, 12); if (!Date.prototype.isPrototypeOf(x52)) { - $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); + throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)'); } var x53 = new Date(1969, 12); if (Date.prototype !== x53.constructor.prototype) { - $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); + throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); } var x61 = new Date(1970, 0); if (typeof x61.constructor.prototype !== "object") { - $ERROR("#6.1: typeof x61.constructor.prototype === 'object'"); + throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); } var x62 = new Date(1970, 0); if (!Date.prototype.isPrototypeOf(x62)) { - $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); + throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)'); } var x63 = new Date(1970, 0); if (Date.prototype !== x63.constructor.prototype) { - $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); + throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); } var x71 = new Date(1999, 11); if (typeof x71.constructor.prototype !== "object") { - $ERROR("#7.1: typeof x71.constructor.prototype === 'object'"); + throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); } var x72 = new Date(1999, 11); if (!Date.prototype.isPrototypeOf(x72)) { - $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); + throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)'); } var x73 = new Date(1999, 11); if (Date.prototype !== x73.constructor.prototype) { - $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); + throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); } var x81 = new Date(1999, 12); if (typeof x81.constructor.prototype !== "object") { - $ERROR("#8.1: typeof x81.constructor.prototype === 'object'"); + throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); } var x82 = new Date(1999, 12); if (!Date.prototype.isPrototypeOf(x82)) { - $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); + throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)'); } var x83 = new Date(1999, 12); if (Date.prototype !== x83.constructor.prototype) { - $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); + throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); } var x91 = new Date(2000, 0); if (typeof x91.constructor.prototype !== "object") { - $ERROR("#9.1: typeof x91.constructor.prototype === 'object'"); + throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); } var x92 = new Date(2000, 0); if (!Date.prototype.isPrototypeOf(x92)) { - $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); + throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)'); } var x93 = new Date(2000, 0); if (Date.prototype !== x93.constructor.prototype) { - $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); + throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); } var x101 = new Date(2099, 11); if (typeof x101.constructor.prototype !== "object") { - $ERROR("#10.1: typeof x101.constructor.prototype === 'object'"); + throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); } var x102 = new Date(2099, 11); if (!Date.prototype.isPrototypeOf(x102)) { - $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); + throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)'); } var x103 = new Date(2099, 11); if (Date.prototype !== x103.constructor.prototype) { - $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); + throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); } var x111 = new Date(2099, 12); if (typeof x111.constructor.prototype !== "object") { - $ERROR("#11.1: typeof x111.constructor.prototype === 'object'"); + throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); } var x112 = new Date(2099, 12); if (!Date.prototype.isPrototypeOf(x112)) { - $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); + throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)'); } var x113 = new Date(2099, 12); if (Date.prototype !== x113.constructor.prototype) { - $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); + throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); } var x121 = new Date(2100, 0); if (typeof x121.constructor.prototype !== "object") { - $ERROR("#12.1: typeof x121.constructor.prototype === 'object'"); + throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); } var x122 = new Date(2100, 0); if (!Date.prototype.isPrototypeOf(x122)) { - $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); + throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)'); } var x123 = new Date(2100, 0); if (Date.prototype !== x123.constructor.prototype) { - $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); + throw new Test262Error("#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 9fe0bece91..b071b6dfa3 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 @@ -12,180 +12,180 @@ description: 3 arguments, (year, month, date) var x11 = new Date(1899, 11, 31); if (typeof x11.constructor.prototype !== "object") { - $ERROR("#1.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); } var x12 = new Date(1899, 11, 31); if (!Date.prototype.isPrototypeOf(x12)) { - $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); + throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)'); } var x13 = new Date(1899, 11, 31); if (Date.prototype !== x13.constructor.prototype) { - $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); + throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); } var x21 = new Date(1899, 12, 1); if (typeof x21.constructor.prototype !== "object") { - $ERROR("#2.1: typeof x21.constructor.prototype === 'object'"); + throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); } var x22 = new Date(1899, 12, 1); if (!Date.prototype.isPrototypeOf(x22)) { - $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); + throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)'); } var x23 = new Date(1899, 12, 1); if (Date.prototype !== x23.constructor.prototype) { - $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); + throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); } var x31 = new Date(1900, 0, 1); if (typeof x31.constructor.prototype !== "object") { - $ERROR("#3.1: typeof x31.constructor.prototype === 'object'"); + throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); } var x32 = new Date(1900, 0, 1); if (!Date.prototype.isPrototypeOf(x32)) { - $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); + throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)'); } var x33 = new Date(1900, 0, 1); if (Date.prototype !== x33.constructor.prototype) { - $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); + throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); } var x41 = new Date(1969, 11, 31); if (typeof x41.constructor.prototype !== "object") { - $ERROR("#4.1: typeof x41.constructor.prototype === 'object'"); + throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); } var x42 = new Date(1969, 11, 31); if (!Date.prototype.isPrototypeOf(x42)) { - $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); + throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)'); } var x43 = new Date(1969, 11, 31); if (Date.prototype !== x43.constructor.prototype) { - $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); + throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); } var x51 = new Date(1969, 12, 1); if (typeof x51.constructor.prototype !== "object") { - $ERROR("#5.1: typeof x51.constructor.prototype === 'object'"); + throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); } var x52 = new Date(1969, 12, 1); if (!Date.prototype.isPrototypeOf(x52)) { - $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); + throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)'); } var x53 = new Date(1969, 12, 1); if (Date.prototype !== x53.constructor.prototype) { - $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); + throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); } var x61 = new Date(1970, 0, 1); if (typeof x61.constructor.prototype !== "object") { - $ERROR("#6.1: typeof x61.constructor.prototype === 'object'"); + throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); } var x62 = new Date(1970, 0, 1); if (!Date.prototype.isPrototypeOf(x62)) { - $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); + throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)'); } var x63 = new Date(1970, 0, 1); if (Date.prototype !== x63.constructor.prototype) { - $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); + throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); } var x71 = new Date(1999, 11, 31); if (typeof x71.constructor.prototype !== "object") { - $ERROR("#7.1: typeof x71.constructor.prototype === 'object'"); + throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); } var x72 = new Date(1999, 11, 31); if (!Date.prototype.isPrototypeOf(x72)) { - $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); + throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)'); } var x73 = new Date(1999, 11, 31); if (Date.prototype !== x73.constructor.prototype) { - $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); + throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); } var x81 = new Date(1999, 12, 1); if (typeof x81.constructor.prototype !== "object") { - $ERROR("#8.1: typeof x81.constructor.prototype === 'object'"); + throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); } var x82 = new Date(1999, 12, 1); if (!Date.prototype.isPrototypeOf(x82)) { - $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); + throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)'); } var x83 = new Date(1999, 12, 1); if (Date.prototype !== x83.constructor.prototype) { - $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); + throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); } var x91 = new Date(2000, 0, 1); if (typeof x91.constructor.prototype !== "object") { - $ERROR("#9.1: typeof x91.constructor.prototype === 'object'"); + throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); } var x92 = new Date(2000, 0, 1); if (!Date.prototype.isPrototypeOf(x92)) { - $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); + throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)'); } var x93 = new Date(2000, 0, 1); if (Date.prototype !== x93.constructor.prototype) { - $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); + throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); } var x101 = new Date(2099, 11, 31); if (typeof x101.constructor.prototype !== "object") { - $ERROR("#10.1: typeof x101.constructor.prototype === 'object'"); + throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); } var x102 = new Date(2099, 11, 31); if (!Date.prototype.isPrototypeOf(x102)) { - $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); + throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)'); } var x103 = new Date(2099, 11, 31); if (Date.prototype !== x103.constructor.prototype) { - $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); + throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); } var x111 = new Date(2099, 12, 1); if (typeof x111.constructor.prototype !== "object") { - $ERROR("#11.1: typeof x111.constructor.prototype === 'object'"); + throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); } var x112 = new Date(2099, 12, 1); if (!Date.prototype.isPrototypeOf(x112)) { - $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); + throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)'); } var x113 = new Date(2099, 12, 1); if (Date.prototype !== x113.constructor.prototype) { - $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); + throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); } var x121 = new Date(2100, 0, 1); if (typeof x121.constructor.prototype !== "object") { - $ERROR("#12.1: typeof x121.constructor.prototype === 'object'"); + throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); } var x122 = new Date(2100, 0, 1); if (!Date.prototype.isPrototypeOf(x122)) { - $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); + throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)'); } var x123 = new Date(2100, 0, 1); if (Date.prototype !== x123.constructor.prototype) { - $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); + throw new Test262Error("#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 5614b24903..dcd13ca834 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 @@ -12,180 +12,180 @@ description: 4 arguments, (year, month, date, hours) var x11 = new Date(1899, 11, 31, 23); if (typeof x11.constructor.prototype !== "object") { - $ERROR("#1.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); } var x12 = new Date(1899, 11, 31, 23); if (!Date.prototype.isPrototypeOf(x12)) { - $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); + throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)'); } var x13 = new Date(1899, 11, 31, 23); if (Date.prototype !== x13.constructor.prototype) { - $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); + throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); } var x21 = new Date(1899, 12, 1, 0); if (typeof x21.constructor.prototype !== "object") { - $ERROR("#2.1: typeof x21.constructor.prototype === 'object'"); + throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); } var x22 = new Date(1899, 12, 1, 0); if (!Date.prototype.isPrototypeOf(x22)) { - $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); + throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)'); } var x23 = new Date(1899, 12, 1, 0); if (Date.prototype !== x23.constructor.prototype) { - $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); + throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); } var x31 = new Date(1900, 0, 1, 0); if (typeof x31.constructor.prototype !== "object") { - $ERROR("#3.1: typeof x31.constructor.prototype === 'object'"); + throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); } var x32 = new Date(1900, 0, 1, 0); if (!Date.prototype.isPrototypeOf(x32)) { - $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); + throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)'); } var x33 = new Date(1900, 0, 1, 0); if (Date.prototype !== x33.constructor.prototype) { - $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); + throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); } var x41 = new Date(1969, 11, 31, 23); if (typeof x41.constructor.prototype !== "object") { - $ERROR("#4.1: typeof x41.constructor.prototype === 'object'"); + throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); } var x42 = new Date(1969, 11, 31, 23); if (!Date.prototype.isPrototypeOf(x42)) { - $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); + throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)'); } var x43 = new Date(1969, 11, 31, 23); if (Date.prototype !== x43.constructor.prototype) { - $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); + throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); } var x51 = new Date(1969, 12, 1, 0); if (typeof x51.constructor.prototype !== "object") { - $ERROR("#5.1: typeof x51.constructor.prototype === 'object'"); + throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); } var x52 = new Date(1969, 12, 1, 0); if (!Date.prototype.isPrototypeOf(x52)) { - $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); + throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)'); } var x53 = new Date(1969, 12, 1, 0); if (Date.prototype !== x53.constructor.prototype) { - $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); + throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); } var x61 = new Date(1970, 0, 1, 0); if (typeof x61.constructor.prototype !== "object") { - $ERROR("#6.1: typeof x61.constructor.prototype === 'object'"); + throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); } var x62 = new Date(1970, 0, 1, 0); if (!Date.prototype.isPrototypeOf(x62)) { - $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); + throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)'); } var x63 = new Date(1970, 0, 1, 0); if (Date.prototype !== x63.constructor.prototype) { - $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); + throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); } var x71 = new Date(1999, 11, 31, 23); if (typeof x71.constructor.prototype !== "object") { - $ERROR("#7.1: typeof x71.constructor.prototype === 'object'"); + throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); } var x72 = new Date(1999, 11, 31, 23); if (!Date.prototype.isPrototypeOf(x72)) { - $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); + throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)'); } var x73 = new Date(1999, 11, 31, 23); if (Date.prototype !== x73.constructor.prototype) { - $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); + throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); } var x81 = new Date(1999, 12, 1, 0); if (typeof x81.constructor.prototype !== "object") { - $ERROR("#8.1: typeof x81.constructor.prototype === 'object'"); + throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); } var x82 = new Date(1999, 12, 1, 0); if (!Date.prototype.isPrototypeOf(x82)) { - $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); + throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)'); } var x83 = new Date(1999, 12, 1, 0); if (Date.prototype !== x83.constructor.prototype) { - $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); + throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); } var x91 = new Date(2000, 0, 1, 0); if (typeof x91.constructor.prototype !== "object") { - $ERROR("#9.1: typeof x91.constructor.prototype === 'object'"); + throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); } var x92 = new Date(2000, 0, 1, 0); if (!Date.prototype.isPrototypeOf(x92)) { - $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); + throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)'); } var x93 = new Date(2000, 0, 1, 0); if (Date.prototype !== x93.constructor.prototype) { - $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); + throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); } var x101 = new Date(2099, 11, 31, 23); if (typeof x101.constructor.prototype !== "object") { - $ERROR("#10.1: typeof x101.constructor.prototype === 'object'"); + throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); } var x102 = new Date(2099, 11, 31, 23); if (!Date.prototype.isPrototypeOf(x102)) { - $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); + throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)'); } var x103 = new Date(2099, 11, 31, 23); if (Date.prototype !== x103.constructor.prototype) { - $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); + throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); } var x111 = new Date(2099, 12, 1, 0); if (typeof x111.constructor.prototype !== "object") { - $ERROR("#11.1: typeof x111.constructor.prototype === 'object'"); + throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); } var x112 = new Date(2099, 12, 1, 0); if (!Date.prototype.isPrototypeOf(x112)) { - $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); + throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)'); } var x113 = new Date(2099, 12, 1, 0); if (Date.prototype !== x113.constructor.prototype) { - $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); + throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); } var x121 = new Date(2100, 0, 1, 0); if (typeof x121.constructor.prototype !== "object") { - $ERROR("#12.1: typeof x121.constructor.prototype === 'object'"); + throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); } var x122 = new Date(2100, 0, 1, 0); if (!Date.prototype.isPrototypeOf(x122)) { - $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); + throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)'); } var x123 = new Date(2100, 0, 1, 0); if (Date.prototype !== x123.constructor.prototype) { - $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); + throw new Test262Error("#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 e0bda5a030..76645f67dd 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 @@ -12,180 +12,180 @@ description: 5 arguments, (year, month, date, hours, minutes) var x11 = new Date(1899, 11, 31, 23, 59); if (typeof x11.constructor.prototype !== "object") { - $ERROR("#1.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); } var x12 = new Date(1899, 11, 31, 23, 59); if (!Date.prototype.isPrototypeOf(x12)) { - $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); + throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)'); } var x13 = new Date(1899, 11, 31, 23, 59); if (Date.prototype !== x13.constructor.prototype) { - $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); + throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); } var x21 = new Date(1899, 12, 1, 0, 0); if (typeof x21.constructor.prototype !== "object") { - $ERROR("#2.1: typeof x21.constructor.prototype === 'object'"); + throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); } var x22 = new Date(1899, 12, 1, 0, 0); if (!Date.prototype.isPrototypeOf(x22)) { - $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); + throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)'); } var x23 = new Date(1899, 12, 1, 0, 0); if (Date.prototype !== x23.constructor.prototype) { - $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); + throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); } var x31 = new Date(1900, 0, 1, 0, 0); if (typeof x31.constructor.prototype !== "object") { - $ERROR("#3.1: typeof x31.constructor.prototype === 'object'"); + throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); } var x32 = new Date(1900, 0, 1, 0, 0); if (!Date.prototype.isPrototypeOf(x32)) { - $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); + throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)'); } var x33 = new Date(1900, 0, 1, 0, 0); if (Date.prototype !== x33.constructor.prototype) { - $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); + throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); } var x41 = new Date(1969, 11, 31, 23, 59); if (typeof x41.constructor.prototype !== "object") { - $ERROR("#4.1: typeof x41.constructor.prototype === 'object'"); + throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); } var x42 = new Date(1969, 11, 31, 23, 59); if (!Date.prototype.isPrototypeOf(x42)) { - $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); + throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)'); } var x43 = new Date(1969, 11, 31, 23, 59); if (Date.prototype !== x43.constructor.prototype) { - $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); + throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); } var x51 = new Date(1969, 12, 1, 0, 0); if (typeof x51.constructor.prototype !== "object") { - $ERROR("#5.1: typeof x51.constructor.prototype === 'object'"); + throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); } var x52 = new Date(1969, 12, 1, 0, 0); if (!Date.prototype.isPrototypeOf(x52)) { - $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); + throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)'); } var x53 = new Date(1969, 12, 1, 0, 0); if (Date.prototype !== x53.constructor.prototype) { - $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); + throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); } var x61 = new Date(1970, 0, 1, 0, 0); if (typeof x61.constructor.prototype !== "object") { - $ERROR("#6.1: typeof x61.constructor.prototype === 'object'"); + throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); } var x62 = new Date(1970, 0, 1, 0, 0); if (!Date.prototype.isPrototypeOf(x62)) { - $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); + throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)'); } var x63 = new Date(1970, 0, 1, 0, 0); if (Date.prototype !== x63.constructor.prototype) { - $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); + throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); } var x71 = new Date(1999, 11, 31, 23, 59); if (typeof x71.constructor.prototype !== "object") { - $ERROR("#7.1: typeof x71.constructor.prototype === 'object'"); + throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); } var x72 = new Date(1999, 11, 31, 23, 59); if (!Date.prototype.isPrototypeOf(x72)) { - $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); + throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)'); } var x73 = new Date(1999, 11, 31, 23, 59); if (Date.prototype !== x73.constructor.prototype) { - $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); + throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); } var x81 = new Date(1999, 12, 1, 0, 0); if (typeof x81.constructor.prototype !== "object") { - $ERROR("#8.1: typeof x81.constructor.prototype === 'object'"); + throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); } var x82 = new Date(1999, 12, 1, 0, 0); if (!Date.prototype.isPrototypeOf(x82)) { - $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); + throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)'); } var x83 = new Date(1999, 12, 1, 0, 0); if (Date.prototype !== x83.constructor.prototype) { - $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); + throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); } var x91 = new Date(2000, 0, 1, 0, 0); if (typeof x91.constructor.prototype !== "object") { - $ERROR("#9.1: typeof x91.constructor.prototype === 'object'"); + throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); } var x92 = new Date(2000, 0, 1, 0, 0); if (!Date.prototype.isPrototypeOf(x92)) { - $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); + throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)'); } var x93 = new Date(2000, 0, 1, 0, 0); if (Date.prototype !== x93.constructor.prototype) { - $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); + throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); } var x101 = new Date(2099, 11, 31, 23, 59); if (typeof x101.constructor.prototype !== "object") { - $ERROR("#10.1: typeof x101.constructor.prototype === 'object'"); + throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); } var x102 = new Date(2099, 11, 31, 23, 59); if (!Date.prototype.isPrototypeOf(x102)) { - $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); + throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)'); } var x103 = new Date(2099, 11, 31, 23, 59); if (Date.prototype !== x103.constructor.prototype) { - $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); + throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); } var x111 = new Date(2099, 12, 1, 0, 0); if (typeof x111.constructor.prototype !== "object") { - $ERROR("#11.1: typeof x111.constructor.prototype === 'object'"); + throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); } var x112 = new Date(2099, 12, 1, 0, 0); if (!Date.prototype.isPrototypeOf(x112)) { - $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); + throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)'); } var x113 = new Date(2099, 12, 1, 0, 0); if (Date.prototype !== x113.constructor.prototype) { - $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); + throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); } var x121 = new Date(2100, 0, 1, 0, 0); if (typeof x121.constructor.prototype !== "object") { - $ERROR("#12.1: typeof x121.constructor.prototype === 'object'"); + throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); } var x122 = new Date(2100, 0, 1, 0, 0); if (!Date.prototype.isPrototypeOf(x122)) { - $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); + throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)'); } var x123 = new Date(2100, 0, 1, 0, 0); if (Date.prototype !== x123.constructor.prototype) { - $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); + throw new Test262Error("#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 664c418e90..7aac4f7560 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 @@ -12,180 +12,180 @@ description: 6 arguments, (year, month, date, hours, minutes, seconds) var x11 = new Date(1899, 11, 31, 23, 59, 59); if (typeof x11.constructor.prototype !== "object") { - $ERROR("#1.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); } var x12 = new Date(1899, 11, 31, 23, 59, 59); if (!Date.prototype.isPrototypeOf(x12)) { - $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); + throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)'); } var x13 = new Date(1899, 11, 31, 23, 59, 59); if (Date.prototype !== x13.constructor.prototype) { - $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); + throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); } var x21 = new Date(1899, 12, 1, 0, 0, 0); if (typeof x21.constructor.prototype !== "object") { - $ERROR("#2.1: typeof x21.constructor.prototype === 'object'"); + throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); } var x22 = new Date(1899, 12, 1, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x22)) { - $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); + throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)'); } var x23 = new Date(1899, 12, 1, 0, 0, 0); if (Date.prototype !== x23.constructor.prototype) { - $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); + throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); } var x31 = new Date(1900, 0, 1, 0, 0, 0); if (typeof x31.constructor.prototype !== "object") { - $ERROR("#3.1: typeof x31.constructor.prototype === 'object'"); + throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); } var x32 = new Date(1900, 0, 1, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x32)) { - $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); + throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)'); } var x33 = new Date(1900, 0, 1, 0, 0, 0); if (Date.prototype !== x33.constructor.prototype) { - $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); + throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); } var x41 = new Date(1969, 11, 31, 23, 59, 59); if (typeof x41.constructor.prototype !== "object") { - $ERROR("#4.1: typeof x41.constructor.prototype === 'object'"); + throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); } var x42 = new Date(1969, 11, 31, 23, 59, 59); if (!Date.prototype.isPrototypeOf(x42)) { - $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); + throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)'); } var x43 = new Date(1969, 11, 31, 23, 59, 59); if (Date.prototype !== x43.constructor.prototype) { - $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); + throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); } var x51 = new Date(1969, 12, 1, 0, 0, 0); if (typeof x51.constructor.prototype !== "object") { - $ERROR("#5.1: typeof x51.constructor.prototype === 'object'"); + throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); } var x52 = new Date(1969, 12, 1, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x52)) { - $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); + throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)'); } var x53 = new Date(1969, 12, 1, 0, 0, 0); if (Date.prototype !== x53.constructor.prototype) { - $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); + throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); } var x61 = new Date(1970, 0, 1, 0, 0, 0); if (typeof x61.constructor.prototype !== "object") { - $ERROR("#6.1: typeof x61.constructor.prototype === 'object'"); + throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); } var x62 = new Date(1970, 0, 1, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x62)) { - $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); + throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)'); } var x63 = new Date(1970, 0, 1, 0, 0, 0); if (Date.prototype !== x63.constructor.prototype) { - $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); + throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); } var x71 = new Date(1999, 11, 31, 23, 59, 59); if (typeof x71.constructor.prototype !== "object") { - $ERROR("#7.1: typeof x71.constructor.prototype === 'object'"); + throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); } var x72 = new Date(1999, 11, 31, 23, 59, 59); if (!Date.prototype.isPrototypeOf(x72)) { - $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); + throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)'); } var x73 = new Date(1999, 11, 31, 23, 59, 59); if (Date.prototype !== x73.constructor.prototype) { - $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); + throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); } var x81 = new Date(1999, 12, 1, 0, 0, 0); if (typeof x81.constructor.prototype !== "object") { - $ERROR("#8.1: typeof x81.constructor.prototype === 'object'"); + throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); } var x82 = new Date(1999, 12, 1, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x82)) { - $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); + throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)'); } var x83 = new Date(1999, 12, 1, 0, 0, 0); if (Date.prototype !== x83.constructor.prototype) { - $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); + throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); } var x91 = new Date(2000, 0, 1, 0, 0, 0); if (typeof x91.constructor.prototype !== "object") { - $ERROR("#9.1: typeof x91.constructor.prototype === 'object'"); + throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); } var x92 = new Date(2000, 0, 1, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x92)) { - $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); + throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)'); } var x93 = new Date(2000, 0, 1, 0, 0, 0); if (Date.prototype !== x93.constructor.prototype) { - $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); + throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); } var x101 = new Date(2099, 11, 31, 23, 59, 59); if (typeof x101.constructor.prototype !== "object") { - $ERROR("#10.1: typeof x101.constructor.prototype === 'object'"); + throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); } var x102 = new Date(2099, 11, 31, 23, 59, 59); if (!Date.prototype.isPrototypeOf(x102)) { - $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); + throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)'); } var x103 = new Date(2099, 11, 31, 23, 59, 59); if (Date.prototype !== x103.constructor.prototype) { - $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); + throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); } var x111 = new Date(2099, 12, 1, 0, 0, 0); if (typeof x111.constructor.prototype !== "object") { - $ERROR("#11.1: typeof x111.constructor.prototype === 'object'"); + throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); } var x112 = new Date(2099, 12, 1, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x112)) { - $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); + throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)'); } var x113 = new Date(2099, 12, 1, 0, 0, 0); if (Date.prototype !== x113.constructor.prototype) { - $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); + throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); } var x121 = new Date(2100, 0, 1, 0, 0, 0); if (typeof x121.constructor.prototype !== "object") { - $ERROR("#12.1: typeof x121.constructor.prototype === 'object'"); + throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); } var x122 = new Date(2100, 0, 1, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x122)) { - $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); + throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)'); } var x123 = new Date(2100, 0, 1, 0, 0, 0); if (Date.prototype !== x123.constructor.prototype) { - $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); + throw new Test262Error("#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 08ed11115e..cc7d84e8ab 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 @@ -12,180 +12,180 @@ description: 7 arguments, (year, month, date, hours, minutes, seconds, ms) var x11 = new Date(1899, 11, 31, 23, 59, 59, 999); if (typeof x11.constructor.prototype !== "object") { - $ERROR("#1.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); } var x12 = new Date(1899, 11, 31, 23, 59, 59, 999); if (!Date.prototype.isPrototypeOf(x12)) { - $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); + throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)'); } var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); if (Date.prototype !== x13.constructor.prototype) { - $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); + throw new Test262Error("#1.3: Date.prototype === x13.constructor.prototype"); } var x21 = new Date(1899, 12, 1, 0, 0, 0, 0); if (typeof x21.constructor.prototype !== "object") { - $ERROR("#2.1: typeof x21.constructor.prototype === 'object'"); + throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); } var x22 = new Date(1899, 12, 1, 0, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x22)) { - $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); + throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)'); } var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); if (Date.prototype !== x23.constructor.prototype) { - $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); + throw new Test262Error("#2.3: Date.prototype === x23.constructor.prototype"); } var x31 = new Date(1900, 0, 1, 0, 0, 0, 0); if (typeof x31.constructor.prototype !== "object") { - $ERROR("#3.1: typeof x31.constructor.prototype === 'object'"); + throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); } var x32 = new Date(1900, 0, 1, 0, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x32)) { - $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); + throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)'); } var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); if (Date.prototype !== x33.constructor.prototype) { - $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); + throw new Test262Error("#3.3: Date.prototype === x33.constructor.prototype"); } var x41 = new Date(1969, 11, 31, 23, 59, 59, 999); if (typeof x41.constructor.prototype !== "object") { - $ERROR("#4.1: typeof x41.constructor.prototype === 'object'"); + throw new Test262Error("#4.1: typeof x41.constructor.prototype === 'object'"); } var x42 = new Date(1969, 11, 31, 23, 59, 59, 999); if (!Date.prototype.isPrototypeOf(x42)) { - $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); + throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)'); } var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); if (Date.prototype !== x43.constructor.prototype) { - $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); + throw new Test262Error("#4.3: Date.prototype === x43.constructor.prototype"); } var x51 = new Date(1969, 12, 1, 0, 0, 0, 0); if (typeof x51.constructor.prototype !== "object") { - $ERROR("#5.1: typeof x51.constructor.prototype === 'object'"); + throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); } var x52 = new Date(1969, 12, 1, 0, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x52)) { - $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); + throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)'); } var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); if (Date.prototype !== x53.constructor.prototype) { - $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); + throw new Test262Error("#5.3: Date.prototype === x53.constructor.prototype"); } var x61 = new Date(1970, 0, 1, 0, 0, 0, 0); if (typeof x61.constructor.prototype !== "object") { - $ERROR("#6.1: typeof x61.constructor.prototype === 'object'"); + throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); } var x62 = new Date(1970, 0, 1, 0, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x62)) { - $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); + throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)'); } var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); if (Date.prototype !== x63.constructor.prototype) { - $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); + throw new Test262Error("#6.3: Date.prototype === x63.constructor.prototype"); } var x71 = new Date(1999, 11, 31, 23, 59, 59, 999); if (typeof x71.constructor.prototype !== "object") { - $ERROR("#7.1: typeof x71.constructor.prototype === 'object'"); + throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); } var x72 = new Date(1999, 11, 31, 23, 59, 59, 999); if (!Date.prototype.isPrototypeOf(x72)) { - $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); + throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)'); } var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); if (Date.prototype !== x73.constructor.prototype) { - $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); + throw new Test262Error("#7.3: Date.prototype === x73.constructor.prototype"); } var x81 = new Date(1999, 12, 1, 0, 0, 0, 0); if (typeof x81.constructor.prototype !== "object") { - $ERROR("#8.1: typeof x81.constructor.prototype === 'object'"); + throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); } var x82 = new Date(1999, 12, 1, 0, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x82)) { - $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); + throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)'); } var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); if (Date.prototype !== x83.constructor.prototype) { - $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); + throw new Test262Error("#8.3: Date.prototype === x83.constructor.prototype"); } var x91 = new Date(2000, 0, 1, 0, 0, 0, 0); if (typeof x91.constructor.prototype !== "object") { - $ERROR("#9.1: typeof x91.constructor.prototype === 'object'"); + throw new Test262Error("#9.1: typeof x91.constructor.prototype === 'object'"); } var x92 = new Date(2000, 0, 1, 0, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x92)) { - $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); + throw new Test262Error('#9.2: Date.prototype.isPrototypeOf(x92)'); } var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); if (Date.prototype !== x93.constructor.prototype) { - $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); + throw new Test262Error("#9.3: Date.prototype === x93.constructor.prototype"); } var x101 = new Date(2099, 11, 31, 23, 59, 59, 999); if (typeof x101.constructor.prototype !== "object") { - $ERROR("#10.1: typeof x101.constructor.prototype === 'object'"); + throw new Test262Error("#10.1: typeof x101.constructor.prototype === 'object'"); } var x102 = new Date(2099, 11, 31, 23, 59, 59, 999); if (!Date.prototype.isPrototypeOf(x102)) { - $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); + throw new Test262Error('#10.2: Date.prototype.isPrototypeOf(x102)'); } var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); if (Date.prototype !== x103.constructor.prototype) { - $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); + throw new Test262Error("#10.3: Date.prototype === x103.constructor.prototype"); } var x111 = new Date(2099, 12, 1, 0, 0, 0, 0); if (typeof x111.constructor.prototype !== "object") { - $ERROR("#11.1: typeof x111.constructor.prototype === 'object'"); + throw new Test262Error("#11.1: typeof x111.constructor.prototype === 'object'"); } var x112 = new Date(2099, 12, 1, 0, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x112)) { - $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); + throw new Test262Error('#11.2: Date.prototype.isPrototypeOf(x112)'); } var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); if (Date.prototype !== x113.constructor.prototype) { - $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); + throw new Test262Error("#11.3: Date.prototype === x113.constructor.prototype"); } var x121 = new Date(2100, 0, 1, 0, 0, 0, 0); if (typeof x121.constructor.prototype !== "object") { - $ERROR("#12.1: typeof x121.constructor.prototype === 'object'"); + throw new Test262Error("#12.1: typeof x121.constructor.prototype === 'object'"); } var x122 = new Date(2100, 0, 1, 0, 0, 0, 0); if (!Date.prototype.isPrototypeOf(x122)) { - $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); + throw new Test262Error('#12.2: Date.prototype.isPrototypeOf(x122)'); } var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); if (Date.prototype !== x123.constructor.prototype) { - $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); + throw new Test262Error("#12.3: Date.prototype === x123.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T1.1.js b/test/built-ins/Date/S15.9.3.1_A3_T1.1.js index 5b50387a5a..e38d8af2fd 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T1.1.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T1.1.js @@ -13,60 +13,60 @@ description: > var x1 = new Date(1899, 11); if (Object.prototype.toString.call(x1) !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12); if (Object.prototype.toString.call(x2) !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0); if (Object.prototype.toString.call(x3) !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11); if (Object.prototype.toString.call(x4) !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12); if (Object.prototype.toString.call(x5) !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0); if (Object.prototype.toString.call(x6) !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11); if (Object.prototype.toString.call(x7) !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12); if (Object.prototype.toString.call(x8) !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0); if (Object.prototype.toString.call(x9) !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11); if (Object.prototype.toString.call(x10) !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12); if (Object.prototype.toString.call(x11) !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0); if (Object.prototype.toString.call(x12) !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T1.2.js b/test/built-ins/Date/S15.9.3.1_A3_T1.2.js index d4f34b6b78..de0640541f 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T1.2.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T1.2.js @@ -15,60 +15,60 @@ Date.prototype.toString = Object.prototype.toString; var x1 = new Date(1899, 11); if (x1.toString() !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12); if (x2.toString() !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0); if (x3.toString() !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11); if (x4.toString() !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12); if (x5.toString() !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0); if (x6.toString() !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11); if (x7.toString() !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12); if (x8.toString() !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0); if (x9.toString() !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11); if (x10.toString() !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12); if (x11.toString() !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0); if (x12.toString() !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T2.1.js b/test/built-ins/Date/S15.9.3.1_A3_T2.1.js index 7f658c32dd..61b4ff2f7f 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T2.1.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T2.1.js @@ -13,60 +13,60 @@ description: > var x1 = new Date(1899, 11, 31); if (Object.prototype.toString.call(x1) !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1); if (Object.prototype.toString.call(x2) !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1); if (Object.prototype.toString.call(x3) !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31); if (Object.prototype.toString.call(x4) !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1); if (Object.prototype.toString.call(x5) !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1); if (Object.prototype.toString.call(x6) !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31); if (Object.prototype.toString.call(x7) !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1); if (Object.prototype.toString.call(x8) !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1); if (Object.prototype.toString.call(x9) !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31); if (Object.prototype.toString.call(x10) !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1); if (Object.prototype.toString.call(x11) !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1); if (Object.prototype.toString.call(x12) !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T2.2.js b/test/built-ins/Date/S15.9.3.1_A3_T2.2.js index fbb79313e1..4d2fc9b70c 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T2.2.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T2.2.js @@ -15,60 +15,60 @@ Date.prototype.toString = Object.prototype.toString; var x1 = new Date(1899, 11, 31); if (x1.toString() !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1); if (x2.toString() !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1); if (x3.toString() !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31); if (x4.toString() !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1); if (x5.toString() !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1); if (x6.toString() !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31); if (x7.toString() !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1); if (x8.toString() !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1); if (x9.toString() !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31); if (x10.toString() !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1); if (x11.toString() !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1); if (x12.toString() !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T3.1.js b/test/built-ins/Date/S15.9.3.1_A3_T3.1.js index 3b51f063b9..fcd332eb31 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T3.1.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T3.1.js @@ -13,60 +13,60 @@ description: > var x1 = new Date(1899, 11, 31, 23); if (Object.prototype.toString.call(x1) !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1, 0); if (Object.prototype.toString.call(x2) !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1, 0); if (Object.prototype.toString.call(x3) !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31, 23); if (Object.prototype.toString.call(x4) !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1, 0); if (Object.prototype.toString.call(x5) !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1, 0); if (Object.prototype.toString.call(x6) !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31, 23); if (Object.prototype.toString.call(x7) !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1, 0); if (Object.prototype.toString.call(x8) !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1, 0); if (Object.prototype.toString.call(x9) !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31, 23); if (Object.prototype.toString.call(x10) !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1, 0); if (Object.prototype.toString.call(x11) !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1, 0); if (Object.prototype.toString.call(x12) !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T3.2.js b/test/built-ins/Date/S15.9.3.1_A3_T3.2.js index 3c5a4dee29..c9eac35e12 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T3.2.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T3.2.js @@ -15,60 +15,60 @@ Date.prototype.toString = Object.prototype.toString; var x1 = new Date(1899, 11, 31, 23); if (x1.toString() !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1, 0); if (x2.toString() !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1, 0); if (x3.toString() !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31, 23); if (x4.toString() !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1, 0); if (x5.toString() !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1, 0); if (x6.toString() !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31, 23); if (x7.toString() !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1, 0); if (x8.toString() !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1, 0); if (x9.toString() !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31, 23); if (x10.toString() !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1, 0); if (x11.toString() !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1, 0); if (x12.toString() !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T4.1.js b/test/built-ins/Date/S15.9.3.1_A3_T4.1.js index f4030d1dc8..44e89423f1 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T4.1.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T4.1.js @@ -13,60 +13,60 @@ description: > var x1 = new Date(1899, 11, 31, 23, 59); if (Object.prototype.toString.call(x1) !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1, 0, 0); if (Object.prototype.toString.call(x2) !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1, 0, 0); if (Object.prototype.toString.call(x3) !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31, 23, 59); if (Object.prototype.toString.call(x4) !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1, 0, 0); if (Object.prototype.toString.call(x5) !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1, 0, 0); if (Object.prototype.toString.call(x6) !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31, 23, 59); if (Object.prototype.toString.call(x7) !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1, 0, 0); if (Object.prototype.toString.call(x8) !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1, 0, 0); if (Object.prototype.toString.call(x9) !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31, 23, 59); if (Object.prototype.toString.call(x10) !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1, 0, 0); if (Object.prototype.toString.call(x11) !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1, 0, 0); if (Object.prototype.toString.call(x12) !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T4.2.js b/test/built-ins/Date/S15.9.3.1_A3_T4.2.js index 25d320140d..af9c12c620 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T4.2.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T4.2.js @@ -15,60 +15,60 @@ Date.prototype.toString = Object.prototype.toString; var x1 = new Date(1899, 11, 31, 23, 59); if (x1.toString() !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1, 0, 0); if (x2.toString() !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1, 0, 0); if (x3.toString() !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31, 23, 59); if (x4.toString() !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1, 0, 0); if (x5.toString() !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1, 0, 0); if (x6.toString() !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31, 23, 59); if (x7.toString() !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1, 0, 0); if (x8.toString() !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1, 0, 0); if (x9.toString() !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31, 23, 59); if (x10.toString() !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1, 0, 0); if (x11.toString() !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1, 0, 0); if (x12.toString() !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T5.1.js b/test/built-ins/Date/S15.9.3.1_A3_T5.1.js index 8b9fdabf28..92741dfc4f 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T5.1.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T5.1.js @@ -11,60 +11,60 @@ description: 6 arguments, (year, month, date, hours, minutes, seconds) var x1 = new Date(1899, 11, 31, 23, 59, 59); if (Object.prototype.toString.call(x1) !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1, 0, 0, 0); if (Object.prototype.toString.call(x2) !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1, 0, 0, 0); if (Object.prototype.toString.call(x3) !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31, 23, 59, 59); if (Object.prototype.toString.call(x4) !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1, 0, 0, 0); if (Object.prototype.toString.call(x5) !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1, 0, 0, 0); if (Object.prototype.toString.call(x6) !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31, 23, 59, 59); if (Object.prototype.toString.call(x7) !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1, 0, 0, 0); if (Object.prototype.toString.call(x8) !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1, 0, 0, 0); if (Object.prototype.toString.call(x9) !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31, 23, 59, 59); if (Object.prototype.toString.call(x10) !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1, 0, 0, 0); if (Object.prototype.toString.call(x11) !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1, 0, 0, 0); if (Object.prototype.toString.call(x12) !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T5.2.js b/test/built-ins/Date/S15.9.3.1_A3_T5.2.js index 9e4ca9eaea..519bc94ba4 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T5.2.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T5.2.js @@ -15,60 +15,60 @@ Date.prototype.toString = Object.prototype.toString; var x1 = new Date(1899, 11, 31, 23, 59, 59); if (x1.toString() !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1, 0, 0, 0); if (x2.toString() !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1, 0, 0, 0); if (x3.toString() !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31, 23, 59, 59); if (x4.toString() !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1, 0, 0, 0); if (x5.toString() !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1, 0, 0, 0); if (x6.toString() !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31, 23, 59, 59); if (x7.toString() !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1, 0, 0, 0); if (x8.toString() !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1, 0, 0, 0); if (x9.toString() !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31, 23, 59, 59); if (x10.toString() !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1, 0, 0, 0); if (x11.toString() !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1, 0, 0, 0); if (x12.toString() !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T6.1.js b/test/built-ins/Date/S15.9.3.1_A3_T6.1.js index 2b4a7c15b8..a4fe3025b1 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T6.1.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T6.1.js @@ -11,60 +11,60 @@ description: 7 arguments, (year, month, date, hours, minutes, seconds, ms) var x1 = new Date(1899, 11, 31, 23, 59, 59, 999); if (Object.prototype.toString.call(x1) !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1, 0, 0, 0, 0); if (Object.prototype.toString.call(x2) !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1, 0, 0, 0, 0); if (Object.prototype.toString.call(x3) !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31, 23, 59, 59, 999); if (Object.prototype.toString.call(x4) !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1, 0, 0, 0, 0); if (Object.prototype.toString.call(x5) !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1, 0, 0, 0, 0); if (Object.prototype.toString.call(x6) !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31, 23, 59, 59, 999); if (Object.prototype.toString.call(x7) !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1, 0, 0, 0, 0); if (Object.prototype.toString.call(x8) !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1, 0, 0, 0, 0); if (Object.prototype.toString.call(x9) !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31, 23, 59, 59, 999); if (Object.prototype.toString.call(x10) !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1, 0, 0, 0, 0); if (Object.prototype.toString.call(x11) !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1, 0, 0, 0, 0); if (Object.prototype.toString.call(x12) !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.1_A3_T6.2.js b/test/built-ins/Date/S15.9.3.1_A3_T6.2.js index 5478976d9a..5c99bb9b94 100644 --- a/test/built-ins/Date/S15.9.3.1_A3_T6.2.js +++ b/test/built-ins/Date/S15.9.3.1_A3_T6.2.js @@ -15,60 +15,60 @@ Date.prototype.toString = Object.prototype.toString; var x1 = new Date(1899, 11, 31, 23, 59, 59, 999); if (x1.toString() !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(1899, 12, 1, 0, 0, 0, 0); if (x2.toString() !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(1900, 0, 1, 0, 0, 0, 0); if (x3.toString() !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(1969, 11, 31, 23, 59, 59, 999); if (x4.toString() !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(1969, 12, 1, 0, 0, 0, 0); if (x5.toString() !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(1970, 0, 1, 0, 0, 0, 0); if (x6.toString() !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(1999, 11, 31, 23, 59, 59, 999); if (x7.toString() !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(1999, 12, 1, 0, 0, 0, 0); if (x8.toString() !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x9 = new Date(2000, 0, 1, 0, 0, 0, 0); if (x9.toString() !== "[object Date]") { - $ERROR("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x10 = new Date(2099, 11, 31, 23, 59, 59, 999); if (x10.toString() !== "[object Date]") { - $ERROR("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x11 = new Date(2099, 12, 1, 0, 0, 0, 0); if (x11.toString() !== "[object Date]") { - $ERROR("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x12 = new Date(2100, 0, 1, 0, 0, 0, 0); if (x12.toString() !== "[object Date]") { - $ERROR("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); } 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 f109c9f293..6abfb91f33 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 @@ -29,21 +29,21 @@ var myObj = function(val) { //CHECK#1 try { var x1 = new Date(new myObj(1), new myObj(2)); - $ERROR("#1: The 1st step is calling ToNumber(year)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } catch (e) { if (e !== "valueOf-1") { - $ERROR("#1: The 1st step is calling ToNumber(year)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 try { var x2 = new Date(1, new myObj(2)); - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } catch (e) { if (e !== "valueOf-2") { - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#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 0e49402b97..c9f9096930 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 @@ -29,32 +29,32 @@ var myObj = function(val) { //CHECK#1 try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3)); - $ERROR("#1: The 1st step is calling ToNumber(year)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } catch (e) { if (e !== "valueOf-1") { - $ERROR("#1: The 1st step is calling ToNumber(year)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 try { var x2 = new Date(1, new myObj(2), new myObj(3)); - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } catch (e) { if (e !== "valueOf-2") { - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 try { var x3 = new Date(1, 2, new myObj(3)); - $ERROR("#3: The 3rd step is calling ToNumber(date)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } catch (e) { if (e !== "valueOf-3") { - $ERROR("#3: The 3rd step is calling ToNumber(date)"); + throw new Test262Error("#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 fb69c201cc..bd00972209 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 @@ -29,43 +29,43 @@ var myObj = function(val) { //CHECK#1 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)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } catch (e) { if (e !== "valueOf-1") { - $ERROR("#1: The 1st step is calling ToNumber(year)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4)); - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } catch (e) { if (e !== "valueOf-2") { - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 try { var x3 = new Date(1, 2, new myObj(3), new myObj(4)); - $ERROR("#3: The 3rd step is calling ToNumber(date)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } catch (e) { if (e !== "valueOf-3") { - $ERROR("#3: The 3rd step is calling ToNumber(date)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 try { var x4 = new Date(1, 2, 3, new myObj(4)); - $ERROR("#4: The 4th step is calling ToNumber(hours)"); + throw new Test262Error("#4: The 4th step is calling ToNumber(hours)"); } catch (e) { if (e !== "valueOf-4") { - $ERROR("#4: The 4th step is calling ToNumber(hours)"); + throw new Test262Error("#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 d1db88565a..e001756044 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 @@ -29,54 +29,54 @@ var myObj = function(val) { //CHECK#1 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)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } catch (e) { if (e !== "valueOf-1") { - $ERROR("#1: The 1st step is calling ToNumber(year)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 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)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } catch (e) { if (e !== "valueOf-2") { - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 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)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } catch (e) { if (e !== "valueOf-3") { - $ERROR("#3: The 3rd step is calling ToNumber(date)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 try { var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5)); - $ERROR("#4: The 4th step is calling ToNumber(hours)"); + throw new Test262Error("#4: The 4th step is calling ToNumber(hours)"); } catch (e) { if (e !== "valueOf-4") { - $ERROR("#4: The 4th step is calling ToNumber(hours)"); + throw new Test262Error("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 try { var x5 = new Date(1, 2, 3, 4, new myObj(5)); - $ERROR("#5: The 5th step is calling ToNumber(minutes)"); + throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)"); } catch (e) { if (e !== "valueOf-5") { - $ERROR("#5: The 5th step is calling ToNumber(minutes)"); + throw new Test262Error("#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 29d5935944..e0c5d6c0b4 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 @@ -29,65 +29,65 @@ var myObj = function(val) { //CHECK#1 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)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } catch (e) { if (e !== "valueOf-1") { - $ERROR("#1: The 1st step is calling ToNumber(year)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 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)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } catch (e) { if (e !== "valueOf-2") { - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 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)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } catch (e) { if (e !== "valueOf-3") { - $ERROR("#3: The 3rd step is calling ToNumber(date)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 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)"); + throw new Test262Error("#4: The 4th step is calling ToNumber(hours)"); } catch (e) { if (e !== "valueOf-4") { - $ERROR("#4: The 4th step is calling ToNumber(hours)"); + throw new Test262Error("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 try { var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6)); - $ERROR("#5: The 5th step is calling ToNumber(minutes)"); + throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)"); } catch (e) { if (e !== "valueOf-5") { - $ERROR("#5: The 5th step is calling ToNumber(minutes)"); + throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)"); } } //CHECK#6 try { var x6 = new Date(1, 2, 3, 4, 5, new myObj(6)); - $ERROR("#6: The 6th step is calling ToNumber(seconds)"); + throw new Test262Error("#6: The 6th step is calling ToNumber(seconds)"); } catch (e) { if (e !== "valueOf-6") { - $ERROR("#6: The 6th step is calling ToNumber(seconds)"); + throw new Test262Error("#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 33c941ae95..f5ab6c1409 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 @@ -29,76 +29,76 @@ var myObj = function(val) { //CHECK#1 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)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } catch (e) { if (e !== "valueOf-1") { - $ERROR("#1: The 1st step is calling ToNumber(year)"); + throw new Test262Error("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 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)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } catch (e) { if (e !== "valueOf-2") { - $ERROR("#2: The 2nd step is calling ToNumber(month)"); + throw new Test262Error("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 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)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } catch (e) { if (e !== "valueOf-3") { - $ERROR("#3: The 3rd step is calling ToNumber(date)"); + throw new Test262Error("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 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)"); + throw new Test262Error("#4: The 4th step is calling ToNumber(hours)"); } catch (e) { if (e !== "valueOf-4") { - $ERROR("#4: The 4th step is calling ToNumber(hours)"); + throw new Test262Error("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 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)"); + throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)"); } catch (e) { if (e !== "valueOf-5") { - $ERROR("#5: The 5th step is calling ToNumber(minutes)"); + throw new Test262Error("#5: The 5th step is calling ToNumber(minutes)"); } } //CHECK#6 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)"); + throw new Test262Error("#6: The 6th step is calling ToNumber(seconds)"); } catch (e) { if (e !== "valueOf-6") { - $ERROR("#6: The 6th step is calling ToNumber(seconds)"); + throw new Test262Error("#6: The 6th step is calling ToNumber(seconds)"); } } //CHECK#7 try { var x7 = new Date(1, 2, 3, 4, 5, 6, new myObj(7)); - $ERROR("#7: The 7th step is calling ToNumber(ms)"); + throw new Test262Error("#7: The 7th step is calling ToNumber(ms)"); } catch (e) { if (e !== "valueOf-7") { - $ERROR("#7: The 7th step is calling ToNumber(ms)"); + throw new Test262Error("#7: The 7th step is calling ToNumber(ms)"); } } 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 2904052101..dd886b43af 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 @@ -11,145 +11,145 @@ includes: [dateConstants.js] ---*/ if (typeof new Date(date_1899_end) !== "object") { - $ERROR("#1.1: typeof new Date(date_1899_end) === 'object'"); + throw new Test262Error("#1.1: typeof new Date(date_1899_end) === 'object'"); } if (new Date(date_1899_end) === undefined) { - $ERROR("#1.2: new Date(date_1899_end) === undefined"); + throw new Test262Error("#1.2: new Date(date_1899_end) === undefined"); } var x13 = new Date(date_1899_end); if (typeof x13 !== "object") { - $ERROR("#1.3: typeof new Date(date_1899_end) !== 'object'"); + throw new Test262Error("#1.3: typeof new Date(date_1899_end) !== 'object'"); } var x14 = new Date(date_1899_end); if (x14 === undefined) { - $ERROR("#1.4: new Date(date_1899_end) !== undefined"); + throw new Test262Error("#1.4: new Date(date_1899_end) !== undefined"); } if (typeof new Date(date_1900_start) !== "object") { - $ERROR("#2.1: typeof new Date(date_1900_start) === 'object'"); + throw new Test262Error("#2.1: typeof new Date(date_1900_start) === 'object'"); } if (new Date(date_1900_start) === undefined) { - $ERROR("#2.2: new Date(date_1900_start) === undefined"); + throw new Test262Error("#2.2: new Date(date_1900_start) === undefined"); } var x23 = new Date(date_1900_start); if (typeof x23 !== "object") { - $ERROR("#2.3: typeof new Date(date_1900_start) !== 'object'"); + throw new Test262Error("#2.3: typeof new Date(date_1900_start) !== 'object'"); } var x24 = new Date(date_1900_start); if (x24 === undefined) { - $ERROR("#2.4: new Date(date_1900_start) !== undefined"); + throw new Test262Error("#2.4: new Date(date_1900_start) !== undefined"); } if (typeof new Date(date_1969_end) !== "object") { - $ERROR("#3.1: typeof new Date(date_1969_end) === 'object'"); + throw new Test262Error("#3.1: typeof new Date(date_1969_end) === 'object'"); } if (new Date(date_1969_end) === undefined) { - $ERROR("#3.2: new Date(date_1969_end) === undefined"); + throw new Test262Error("#3.2: new Date(date_1969_end) === undefined"); } var x33 = new Date(date_1969_end); if (typeof x33 !== "object") { - $ERROR("#3.3: typeof new Date(date_1969_end) !== 'object'"); + throw new Test262Error("#3.3: typeof new Date(date_1969_end) !== 'object'"); } var x34 = new Date(date_1969_end); if (x34 === undefined) { - $ERROR("#3.4: new Date(date_1969_end) !== undefined"); + throw new Test262Error("#3.4: new Date(date_1969_end) !== undefined"); } if (typeof new Date(date_1970_start) !== "object") { - $ERROR("#4.1: typeof new Date(date_1970_start) === 'object'"); + throw new Test262Error("#4.1: typeof new Date(date_1970_start) === 'object'"); } if (new Date(date_1970_start) === undefined) { - $ERROR("#4.2: new Date(date_1970_start) === undefined"); + throw new Test262Error("#4.2: new Date(date_1970_start) === undefined"); } var x43 = new Date(date_1970_start); if (typeof x43 !== "object") { - $ERROR("#4.3: typeof new Date(date_1970_start) !== 'object'"); + throw new Test262Error("#4.3: typeof new Date(date_1970_start) !== 'object'"); } var x44 = new Date(date_1970_start); if (x44 === undefined) { - $ERROR("#4.4: new Date(date_1970_start) !== undefined"); + throw new Test262Error("#4.4: new Date(date_1970_start) !== undefined"); } if (typeof new Date(date_1999_end) !== "object") { - $ERROR("#5.1: typeof new Date(date_1999_end) === 'object'"); + throw new Test262Error("#5.1: typeof new Date(date_1999_end) === 'object'"); } if (new Date(date_1999_end) === undefined) { - $ERROR("#5.2: new Date(date_1999_end) === undefined"); + throw new Test262Error("#5.2: new Date(date_1999_end) === undefined"); } var x53 = new Date(date_1999_end); if (typeof x53 !== "object") { - $ERROR("#5.3: typeof new Date(date_1999_end) !== 'object'"); + throw new Test262Error("#5.3: typeof new Date(date_1999_end) !== 'object'"); } var x54 = new Date(date_1999_end); if (x54 === undefined) { - $ERROR("#5.4: new Date(date_1999_end) !== undefined"); + throw new Test262Error("#5.4: new Date(date_1999_end) !== undefined"); } if (typeof new Date(date_2000_start) !== "object") { - $ERROR("#6.1: typeof new Date(date_2000_start) === 'object'"); + throw new Test262Error("#6.1: typeof new Date(date_2000_start) === 'object'"); } if (new Date(date_2000_start) === undefined) { - $ERROR("#6.2: new Date(date_2000_start) === undefined"); + throw new Test262Error("#6.2: new Date(date_2000_start) === undefined"); } var x63 = new Date(date_2000_start); if (typeof x63 !== "object") { - $ERROR("#6.3: typeof new Date(date_2000_start) !== 'object'"); + throw new Test262Error("#6.3: typeof new Date(date_2000_start) !== 'object'"); } var x64 = new Date(date_2000_start); if (x64 === undefined) { - $ERROR("#6.4: new Date(date_2000_start) !== undefined"); + throw new Test262Error("#6.4: new Date(date_2000_start) !== undefined"); } if (typeof new Date(date_2099_end) !== "object") { - $ERROR("#7.1: typeof new Date(date_2099_end) === 'object'"); + throw new Test262Error("#7.1: typeof new Date(date_2099_end) === 'object'"); } if (new Date(date_2099_end) === undefined) { - $ERROR("#7.2: new Date(date_2099_end) === undefined"); + throw new Test262Error("#7.2: new Date(date_2099_end) === undefined"); } var x73 = new Date(date_2099_end); if (typeof x73 !== "object") { - $ERROR("#7.3: typeof new Date(date_2099_end) !== 'object'"); + throw new Test262Error("#7.3: typeof new Date(date_2099_end) !== 'object'"); } var x74 = new Date(date_2099_end); if (x74 === undefined) { - $ERROR("#7.4: new Date(date_2099_end) !== undefined"); + throw new Test262Error("#7.4: new Date(date_2099_end) !== undefined"); } if (typeof new Date(date_2100_start) !== "object") { - $ERROR("#8.1: typeof new Date(date_2100_start) === 'object'"); + throw new Test262Error("#8.1: typeof new Date(date_2100_start) === 'object'"); } if (new Date(date_2100_start) === undefined) { - $ERROR("#8.2: new Date(date_2100_start) === undefined"); + throw new Test262Error("#8.2: new Date(date_2100_start) === undefined"); } var x83 = new Date(date_2100_start); if (typeof x83 !== "object") { - $ERROR("#8.3: typeof new Date(date_2100_start) !== 'object'"); + throw new Test262Error("#8.3: typeof new Date(date_2100_start) !== 'object'"); } var x84 = new Date(date_2100_start); if (x84 === undefined) { - $ERROR("#8.4: new Date(date_2100_start) !== undefined"); + throw new Test262Error("#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 f0b6538c32..f97949bb4b 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 @@ -13,120 +13,120 @@ includes: [dateConstants.js] var x11 = new Date(date_1899_end); if (typeof x11.constructor.prototype !== "object") { - $ERROR("#1.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#1.1: typeof x11.constructor.prototype === 'object'"); } var x12 = new Date(date_1899_end); if (!Date.prototype.isPrototypeOf(x12)) { - $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); + throw new Test262Error('#1.2: Date.prototype.isPrototypeOf(x12)'); } var x13 = new Date(date_1899_end); if (Date.prototype !== x13.constructor.prototype) { - $ERROR("#1.3: Date.prototype !== x13.constructor.prototype"); + throw new Test262Error("#1.3: Date.prototype !== x13.constructor.prototype"); } var x21 = new Date(date_1900_start); if (typeof x21.constructor.prototype !== "object") { - $ERROR("#2.1: typeof x21.constructor.prototype === 'object'"); + throw new Test262Error("#2.1: typeof x21.constructor.prototype === 'object'"); } var x22 = new Date(date_1900_start); if (!Date.prototype.isPrototypeOf(x22)) { - $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); + throw new Test262Error('#2.2: Date.prototype.isPrototypeOf(x22)'); } var x23 = new Date(date_1900_start); if (Date.prototype !== x23.constructor.prototype) { - $ERROR("#2.3: Date.prototype !== x23.constructor.prototype"); + throw new Test262Error("#2.3: Date.prototype !== x23.constructor.prototype"); } var x31 = new Date(date_1969_end); if (typeof x31.constructor.prototype !== "object") { - $ERROR("#3.1: typeof x31.constructor.prototype === 'object'"); + throw new Test262Error("#3.1: typeof x31.constructor.prototype === 'object'"); } var x32 = new Date(date_1969_end); if (!Date.prototype.isPrototypeOf(x32)) { - $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); + throw new Test262Error('#3.2: Date.prototype.isPrototypeOf(x32)'); } var x33 = new Date(date_1969_end); if (Date.prototype !== x33.constructor.prototype) { - $ERROR("#3.3: Date.prototype !== x33.constructor.prototype"); + throw new Test262Error("#3.3: Date.prototype !== x33.constructor.prototype"); } var x41 = new Date(date_1970_start); if (typeof x41.constructor.prototype !== "object") { - $ERROR("#4.1: typeof x11.constructor.prototype === 'object'"); + throw new Test262Error("#4.1: typeof x11.constructor.prototype === 'object'"); } var x42 = new Date(date_1970_start); if (!Date.prototype.isPrototypeOf(x42)) { - $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); + throw new Test262Error('#4.2: Date.prototype.isPrototypeOf(x42)'); } var x43 = new Date(date_1970_start); if (Date.prototype !== x43.constructor.prototype) { - $ERROR("#4.3: Date.prototype !== x43.constructor.prototype"); + throw new Test262Error("#4.3: Date.prototype !== x43.constructor.prototype"); } var x51 = new Date(date_1999_end); if (typeof x51.constructor.prototype !== "object") { - $ERROR("#5.1: typeof x51.constructor.prototype === 'object'"); + throw new Test262Error("#5.1: typeof x51.constructor.prototype === 'object'"); } var x52 = new Date(date_1999_end); if (!Date.prototype.isPrototypeOf(x52)) { - $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); + throw new Test262Error('#5.2: Date.prototype.isPrototypeOf(x52)'); } var x53 = new Date(date_1999_end); if (Date.prototype !== x53.constructor.prototype) { - $ERROR("#5.3: Date.prototype !== x53.constructor.prototype"); + throw new Test262Error("#5.3: Date.prototype !== x53.constructor.prototype"); } var x61 = new Date(date_2000_start); if (typeof x61.constructor.prototype !== "object") { - $ERROR("#6.1: typeof x61.constructor.prototype === 'object'"); + throw new Test262Error("#6.1: typeof x61.constructor.prototype === 'object'"); } var x62 = new Date(date_2000_start); if (!Date.prototype.isPrototypeOf(x62)) { - $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); + throw new Test262Error('#6.2: Date.prototype.isPrototypeOf(x62)'); } var x63 = new Date(date_2000_start); if (Date.prototype !== x63.constructor.prototype) { - $ERROR("#6.3: Date.prototype !== x63.constructor.prototype"); + throw new Test262Error("#6.3: Date.prototype !== x63.constructor.prototype"); } var x71 = new Date(date_2099_end); if (typeof x71.constructor.prototype !== "object") { - $ERROR("#7.1: typeof x71.constructor.prototype === 'object'"); + throw new Test262Error("#7.1: typeof x71.constructor.prototype === 'object'"); } var x72 = new Date(date_2099_end); if (!Date.prototype.isPrototypeOf(x72)) { - $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); + throw new Test262Error('#7.2: Date.prototype.isPrototypeOf(x72)'); } var x73 = new Date(date_2099_end); if (Date.prototype !== x73.constructor.prototype) { - $ERROR("#7.3: Date.prototype !== x73.constructor.prototype"); + throw new Test262Error("#7.3: Date.prototype !== x73.constructor.prototype"); } var x81 = new Date(date_2100_start); if (typeof x81.constructor.prototype !== "object") { - $ERROR("#8.1: typeof x81.constructor.prototype === 'object'"); + throw new Test262Error("#8.1: typeof x81.constructor.prototype === 'object'"); } var x82 = new Date(date_2100_start); if (!Date.prototype.isPrototypeOf(x82)) { - $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); + throw new Test262Error('#8.2: Date.prototype.isPrototypeOf(x82)'); } var x83 = new Date(date_2100_start); if (Date.prototype !== x83.constructor.prototype) { - $ERROR("#8.3: Date.prototype !== x83.constructor.prototype"); + throw new Test262Error("#8.3: Date.prototype !== x83.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.3.2_A3_T1.1.js b/test/built-ins/Date/S15.9.3.2_A3_T1.1.js index 6ce49d3516..1a81dd1cdb 100644 --- a/test/built-ins/Date/S15.9.3.2_A3_T1.1.js +++ b/test/built-ins/Date/S15.9.3.2_A3_T1.1.js @@ -12,40 +12,40 @@ includes: [dateConstants.js] var x1 = new Date(date_1899_end); if (Object.prototype.toString.call(x1) !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(date_1900_start); if (Object.prototype.toString.call(x2) !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(date_1969_end); if (Object.prototype.toString.call(x3) !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(date_1970_start); if (Object.prototype.toString.call(x4) !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(date_1999_end); if (Object.prototype.toString.call(x5) !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(date_2000_start); if (Object.prototype.toString.call(x6) !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(date_2099_end); if (Object.prototype.toString.call(x7) !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(date_2100_start); if (Object.prototype.toString.call(x8) !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.3.2_A3_T1.2.js b/test/built-ins/Date/S15.9.3.2_A3_T1.2.js index eda085b546..b352b721fb 100644 --- a/test/built-ins/Date/S15.9.3.2_A3_T1.2.js +++ b/test/built-ins/Date/S15.9.3.2_A3_T1.2.js @@ -14,40 +14,40 @@ Date.prototype.toString = Object.prototype.toString; var x1 = new Date(date_1899_end); if (x1.toString() !== "[object Date]") { - $ERROR("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x2 = new Date(date_1900_start); if (x2.toString() !== "[object Date]") { - $ERROR("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x3 = new Date(date_1969_end); if (x3.toString() !== "[object Date]") { - $ERROR("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x4 = new Date(date_1970_start); if (x4.toString() !== "[object Date]") { - $ERROR("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x5 = new Date(date_1999_end); if (x5.toString() !== "[object Date]") { - $ERROR("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x6 = new Date(date_2000_start); if (x6.toString() !== "[object Date]") { - $ERROR("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x7 = new Date(date_2099_end); if (x7.toString() !== "[object Date]") { - $ERROR("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); } var x8 = new Date(date_2100_start); if (x8.toString() !== "[object Date]") { - $ERROR("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); + throw new Test262Error("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); } diff --git a/test/built-ins/Date/S15.9.4_A1.js b/test/built-ins/Date/S15.9.4_A1.js index 6416f306e8..3a21806953 100644 --- a/test/built-ins/Date/S15.9.4_A1.js +++ b/test/built-ins/Date/S15.9.4_A1.js @@ -8,5 +8,5 @@ description: Checking existence of the property "prototype" ---*/ if (!Date.hasOwnProperty("prototype")) { - $ERROR('#1: The Date constructor has the property "prototype"'); + throw new Test262Error('#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 dc249cd634..07477dbb37 100644 --- a/test/built-ins/Date/S15.9.4_A2.js +++ b/test/built-ins/Date/S15.9.4_A2.js @@ -8,5 +8,5 @@ description: Checking existence of the property "parse" ---*/ if (!Date.hasOwnProperty("parse")) { - $ERROR('#1: The Date constructor has the property "parse"'); + throw new Test262Error('#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 bfe72b5632..ecda1b9fc2 100644 --- a/test/built-ins/Date/S15.9.4_A3.js +++ b/test/built-ins/Date/S15.9.4_A3.js @@ -8,5 +8,5 @@ description: Checking existence of the property "UTC" ---*/ if (!Date.hasOwnProperty("UTC")) { - $ERROR('#1: The Date constructor has the property "UTC"'); + throw new Test262Error('#1: The Date constructor has the property "UTC"'); } diff --git a/test/built-ins/Date/S15.9.4_A4.js b/test/built-ins/Date/S15.9.4_A4.js index 18c468f988..07dbc584c9 100644 --- a/test/built-ins/Date/S15.9.4_A4.js +++ b/test/built-ins/Date/S15.9.4_A4.js @@ -11,5 +11,5 @@ description: Checking Function.prototype.isPrototypeOf(Date) //CHECK#1 if (!(Function.prototype.isPrototypeOf(Date))) { - $ERROR('#1: the value of the internal [[Prototype]] property of the Date constructor is the Function prototype object.'); + throw new Test262Error('#1: the value of the internal [[Prototype]] property of the Date constructor is the Function prototype object.'); } diff --git a/test/built-ins/Date/S15.9.4_A5.js b/test/built-ins/Date/S15.9.4_A5.js index dbb236d52f..b9b5c7024b 100644 --- a/test/built-ins/Date/S15.9.4_A5.js +++ b/test/built-ins/Date/S15.9.4_A5.js @@ -9,10 +9,10 @@ description: Checking Date.length property //CHECK#1 if (!Date.hasOwnProperty("length")) { - $ERROR('#1: Date constructor has length property'); + throw new Test262Error('#1: Date constructor has length property'); } //CHECK#2 if (Date.length !== 7) { - $ERROR('#2: Date constructor length property value should be 7'); + throw new Test262Error('#2: Date constructor length property value should be 7'); } 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 7def6880c7..17842f2494 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 @@ -14,5 +14,5 @@ if (x === 1) else Date.UTC = 1; if (Date.UTC === x) { - $ERROR('#1: The Date.UTC has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.UTC has not the attribute ReadOnly'); } 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 a6c590a814..6dbdc3a9ce 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 @@ -9,9 +9,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.UTC === false) { - $ERROR('#1: The Date.UTC property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.UTC property has not the attributes DontDelete'); } if (Date.hasOwnProperty('UTC')) { - $ERROR('#2: The Date.UTC property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 3db47612a1..5097181855 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 @@ -9,11 +9,11 @@ description: Checking DontEnum attribute ---*/ if (Date.propertyIsEnumerable('UTC')) { - $ERROR('#1: The Date.UTC property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.UTC property has the attribute DontEnum'); } for (var x in Date) { if (x === "UTC") { - $ERROR('#2: The Date.UTC has the attribute DontEnum'); + throw new Test262Error('#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 ced5116878..eefa2e33d9 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 @@ -9,9 +9,9 @@ description: The "length" property of the "UTC" is 7 ---*/ if (Date.UTC.hasOwnProperty("length") !== true) { - $ERROR('#1: The UTC has a "length" property'); + throw new Test262Error('#1: The UTC has a "length" property'); } if (Date.UTC.length !== 7) { - $ERROR('#2: The "length" property of the UTC is 7'); + throw new Test262Error('#2: The "length" property of the UTC is 7'); } diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js b/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js index e63ae29535..3c04ed9105 100644 --- a/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js +++ b/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js @@ -14,5 +14,5 @@ includes: [propertyHelper.js] var x = Date.UTC.length; verifyNotWritable(Date.UTC, "length", null, 1); if (Date.UTC.length !== x) { - $ERROR('#1: The Date.UTC.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.UTC.length has the attribute ReadOnly'); } 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 79d0468c74..f43c19861f 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 @@ -11,9 +11,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.UTC.length !== true) { - $ERROR('#1: The Date.UTC.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.UTC.length property does not have the attributes DontDelete'); } if (Date.UTC.hasOwnProperty('length')) { - $ERROR('#2: The Date.UTC.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 99fc8db1be..8f8ef9b20a 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 @@ -11,11 +11,11 @@ description: Checking DontEnum attribute ---*/ if (Date.UTC.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.UTC.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.UTC.length property has the attribute DontEnum'); } for (var x in Date.UTC) { if (x === "length") { - $ERROR('#2: The Date.UTC.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.UTC.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/construct_with_date.js b/test/built-ins/Date/construct_with_date.js index ca61c89d16..8bbf3292fe 100644 --- a/test/built-ins/Date/construct_with_date.js +++ b/test/built-ins/Date/construct_with_date.js @@ -18,10 +18,10 @@ var dateValue = 1438560000000; var oldDate = new Date(dateValue); oldDate.toString = function() { - $ERROR("toString() method called"); + throw new Test262Error("toString() method called"); }; oldDate.valueOf = function() { - $ERROR("valueOf() method called"); + throw new Test262Error("valueOf() method called"); }; var newDate = new Date(oldDate); 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 16b0c26371..9a24cbeaab 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.parse = 1; if (Date.parse === x) { - $ERROR('#1: The Date.parse has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.parse has not the attribute ReadOnly'); } 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 fed5c795f1..59649bca4b 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.parse === false) { - $ERROR('#1: The Date.parse property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.parse property has not the attributes DontDelete'); } if (Date.hasOwnProperty('parse')) { - $ERROR('#2: The Date.parse property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 0b1c3b52da..a6fd7466f1 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.propertyIsEnumerable('parse')) { - $ERROR('#1: The Date.parse property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.parse property has the attribute DontEnum'); } for (var x in Date) { if (x === "parse") { - $ERROR('#2: The Date.parse has the attribute DontEnum'); + throw new Test262Error('#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 74cb85848c..115a0674c2 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,9 +8,9 @@ description: The "length" property of the "parse" is 1 ---*/ if (Date.parse.hasOwnProperty("length") !== true) { - $ERROR('#1: The parse has a "length" property'); + throw new Test262Error('#1: The parse has a "length" property'); } if (Date.parse.length !== 1) { - $ERROR('#2: The "length" property of the parse is 1'); + throw new Test262Error('#2: The "length" property of the parse is 1'); } diff --git a/test/built-ins/Date/parse/S15.9.4.2_A3_T1.js b/test/built-ins/Date/parse/S15.9.4.2_A3_T1.js index e2e0e36ba9..0054721ca8 100644 --- a/test/built-ins/Date/parse/S15.9.4.2_A3_T1.js +++ b/test/built-ins/Date/parse/S15.9.4.2_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.parse.length; verifyNotWritable(Date.parse, "length", null, 1); if (Date.parse.length !== x) { - $ERROR('#1: The Date.parse.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.parse.length has the attribute ReadOnly'); } 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 7f70b2379e..9776dfcdac 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.parse.length !== true) { - $ERROR('#1: The Date.parse.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.parse.length property does not have the attributes DontDelete'); } if (Date.parse.hasOwnProperty('length')) { - $ERROR('#2: The Date.parse.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 64b46f4d40..3824a5d434 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.parse.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.parse.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.parse.length property has the attribute DontEnum'); } for (var x in Date.parse) { if (x === "length") { - $ERROR('#2: The Date.parse.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.parse.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/S15.9.4.1_A1_T1.js b/test/built-ins/Date/prototype/S15.9.4.1_A1_T1.js index 2ebf8b9f0f..e2b7ff4ef1 100644 --- a/test/built-ins/Date/prototype/S15.9.4.1_A1_T1.js +++ b/test/built-ins/Date/prototype/S15.9.4.1_A1_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype; verifyNotWritable(Date, "prototype", null, 1); if (Date.prototype !== x) { - $ERROR('#1: The Date.prototype has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype has the attribute ReadOnly'); } diff --git a/test/built-ins/Date/prototype/S15.9.4.1_A1_T2.js b/test/built-ins/Date/prototype/S15.9.4.1_A1_T2.js index 6a50d77ca0..d2d7ffe0b5 100644 --- a/test/built-ins/Date/prototype/S15.9.4.1_A1_T2.js +++ b/test/built-ins/Date/prototype/S15.9.4.1_A1_T2.js @@ -14,7 +14,7 @@ verifyNotConfigurable(Date, "prototype"); try { if (delete Date.prototype !== false) { - $ERROR('#1: The Date.prototype property has the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype property has the attributes DontDelete'); } } catch (e) { if (e instanceof Test262Error) throw e; @@ -22,5 +22,5 @@ try { } if (!Date.hasOwnProperty('prototype')) { - $ERROR('#2: The Date.prototype property has the attributes DontDelete'); + throw new Test262Error('#2: The Date.prototype property has the attributes DontDelete'); } 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 b7394a74fe..2be2962616 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.propertyIsEnumerable('prototype')) { - $ERROR('#1: The Date.prototype property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype property has the attribute DontEnum'); } for (var x in Date) { if (x === "prototype") { - $ERROR('#2: The Date.prototype has the attribute DontEnum'); + throw new Test262Error('#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 a61c695c39..e2155e9737 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,5 +8,5 @@ description: The Date.prototype has the property "constructor" ---*/ if (Date.prototype.hasOwnProperty("constructor") !== true) { - $ERROR('#1: The Date.prototype has the property "constructor"'); + throw new Test262Error('#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 16214cd123..5306946136 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,5 +8,5 @@ description: The Date.prototype has the property "toString" ---*/ if (Date.prototype.hasOwnProperty("toString") !== true) { - $ERROR('#1: The Date.prototype has the property "toString"'); + throw new Test262Error('#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 77bb9e0a5e..81ef02eb66 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,5 +8,5 @@ description: The Date.prototype has the property "toDateString" ---*/ if (Date.prototype.hasOwnProperty("toDateString") !== true) { - $ERROR('#1: The Date.prototype has the property "toDateString"'); + throw new Test262Error('#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 657836386f..357c38271d 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,5 +8,5 @@ description: The Date.prototype has the property "toTimeString" ---*/ if (Date.prototype.hasOwnProperty("toTimeString") !== true) { - $ERROR('#1: The Date.prototype has the property "toTimeString"'); + throw new Test262Error('#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 27dc14370f..d11fa7d536 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,5 +8,5 @@ description: The Date.prototype has the property "toLocaleString" ---*/ if (Date.prototype.hasOwnProperty("toLocaleString") !== true) { - $ERROR('#1: The Date.prototype has the property "toLocaleString"'); + throw new Test262Error('#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 3dd8b2e68a..87d0b1b002 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,5 +8,5 @@ description: The Date.prototype has the property "toLocaleDateString" ---*/ if (Date.prototype.hasOwnProperty("toLocaleDateString") !== true) { - $ERROR('#1: The Date.prototype has the property "toLocaleDateString"'); + throw new Test262Error('#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 5db6c40397..e804cdeb76 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,5 +8,5 @@ description: The Date.prototype has the property "toLocaleTimeString" ---*/ if (Date.prototype.hasOwnProperty("toLocaleTimeString") !== true) { - $ERROR('#1: The Date.prototype has the property "toLocaleTimeString"'); + throw new Test262Error('#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 8b90a9fd18..16cca02471 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,5 +8,5 @@ description: The Date.prototype has the property "valueOf" ---*/ if (Date.prototype.hasOwnProperty("valueOf") !== true) { - $ERROR('#1: The Date.prototype has the property "valueOf"'); + throw new Test262Error('#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 822c9ce4b6..adf95108bb 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,5 +8,5 @@ description: The Date.prototype has the property "getTime" ---*/ if (Date.prototype.hasOwnProperty("getTime") !== true) { - $ERROR('#1: The Date.prototype has the property "getTime"'); + throw new Test262Error('#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 2453c84d08..0176bee965 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,5 +8,5 @@ description: The Date.prototype has the property "getFullYear" ---*/ if (Date.prototype.hasOwnProperty("getFullYear") !== true) { - $ERROR('#1: The Date.prototype has the property "getFullYear"'); + throw new Test262Error('#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 089c3afd05..22ea0966aa 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,5 +8,5 @@ description: The Date.prototype has the property "getUTCFullYear" ---*/ if (Date.prototype.hasOwnProperty("getUTCFullYear") !== true) { - $ERROR('#1: The Date.prototype has the property "getUTCFullYear"'); + throw new Test262Error('#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 32eb4d087a..bf78dfd193 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,5 +8,5 @@ description: The Date.prototype has the property "getMonth" ---*/ if (Date.prototype.hasOwnProperty("getMonth") !== true) { - $ERROR('#1: The Date.prototype has the property "getMonth"'); + throw new Test262Error('#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 95a9789cac..b1ea62dc5b 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,5 +8,5 @@ description: The Date.prototype has the property "getUTCMonth" ---*/ if (Date.prototype.hasOwnProperty("getUTCMonth") !== true) { - $ERROR('#1: The Date.prototype has the property "getUTCMonth"'); + throw new Test262Error('#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 0ca0cf4915..cc0ac63067 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,5 +8,5 @@ description: The Date.prototype has the property "getDate" ---*/ if (Date.prototype.hasOwnProperty("getDate") !== true) { - $ERROR('#1: The Date.prototype has the property "getDate"'); + throw new Test262Error('#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 8948107518..0cf0058744 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,5 +8,5 @@ description: The Date.prototype has the property "getUTCDate" ---*/ if (Date.prototype.hasOwnProperty("getUTCDate") !== true) { - $ERROR('#1: The Date.prototype has the property "getUTCDate"'); + throw new Test262Error('#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 ad9091b0e3..4063e854f6 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,5 +8,5 @@ description: The Date.prototype has the property "getDay" ---*/ if (Date.prototype.hasOwnProperty("getDay") !== true) { - $ERROR('#1: The Date.prototype has the property "getDay"'); + throw new Test262Error('#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 ba2fda2374..ecd44ccbf8 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,5 +8,5 @@ description: The Date.prototype has the property "getUTCDay" ---*/ if (Date.prototype.hasOwnProperty("getUTCDay") !== true) { - $ERROR('#1: The Date.prototype has the property "getUTCDay"'); + throw new Test262Error('#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 9751d2832f..d66809dd5c 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,5 +8,5 @@ description: The Date.prototype has the property "getHours" ---*/ if (Date.prototype.hasOwnProperty("getHours") !== true) { - $ERROR('#1: The Date.prototype has the property "getHours"'); + throw new Test262Error('#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 e3188d00c3..1c524c6724 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,5 +8,5 @@ description: The Date.prototype has the property "getUTCHours" ---*/ if (Date.prototype.hasOwnProperty("getUTCHours") !== true) { - $ERROR('#1: The Date.prototype has the property "getUTCHours"'); + throw new Test262Error('#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 31ee18ed28..f9c52ce5e3 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,5 +8,5 @@ description: The Date.prototype has the property "getMinutes" ---*/ if (Date.prototype.hasOwnProperty("getMinutes") !== true) { - $ERROR('#1: The Date.prototype has the property "getMinutes"'); + throw new Test262Error('#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 3bbb17e1a4..87ab35c6b3 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,5 +8,5 @@ description: The Date.prototype has the property "getUTCMinutes" ---*/ if (Date.prototype.hasOwnProperty("getUTCMinutes") !== true) { - $ERROR('#1: The Date.prototype has the property "getUTCMinutes"'); + throw new Test262Error('#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 5937e6262d..cec3c0833b 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,5 +8,5 @@ description: The Date.prototype has the property "getSeconds" ---*/ if (Date.prototype.hasOwnProperty("getSeconds") !== true) { - $ERROR('#1: The Date.prototype has the property "getSeconds"'); + throw new Test262Error('#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 39c7452778..1379896c4d 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,5 +8,5 @@ description: The Date.prototype has the property "getUTCSeconds" ---*/ if (Date.prototype.hasOwnProperty("getUTCSeconds") !== true) { - $ERROR('#1: The Date.prototype has the property "getUTCSeconds"'); + throw new Test262Error('#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 723af010d6..a00b003ab2 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,5 +8,5 @@ description: The Date.prototype has the property "getMilliseconds" ---*/ if (Date.prototype.hasOwnProperty("getMilliseconds") !== true) { - $ERROR('#1: The Date.prototype has the property "getMilliseconds"'); + throw new Test262Error('#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 e68b18a3dc..3cea8d821a 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,5 +8,5 @@ description: The Date.prototype has the property "getUTCMilliseconds" ---*/ if (Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true) { - $ERROR('#1: The Date.prototype has the property "getUTCMilliseconds"'); + throw new Test262Error('#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 77b7cd1206..794e7a742d 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,5 +8,5 @@ description: The Date.prototype has the property "getTimezoneOffset" ---*/ if (Date.prototype.hasOwnProperty("getTimezoneOffset") !== true) { - $ERROR('#1: The Date.prototype has the property "getTimezoneOffset"'); + throw new Test262Error('#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 f69e1e1b75..0b607dc97a 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,5 +8,5 @@ description: The Date.prototype has the property "setTime" ---*/ if (Date.prototype.hasOwnProperty("setTime") !== true) { - $ERROR('#1: The Date.prototype has the property "setTime"'); + throw new Test262Error('#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 ceb21bce44..b7839c8cf6 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,5 +8,5 @@ description: The Date.prototype has the property "setMilliseconds" ---*/ if (Date.prototype.hasOwnProperty("setMilliseconds") !== true) { - $ERROR('#1: The Date.prototype has the property "setMilliseconds"'); + throw new Test262Error('#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 31bec01a85..2eed4f69fa 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,5 +8,5 @@ description: The Date.prototype has the property "setUTCMilliseconds" ---*/ if (Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true) { - $ERROR('#1: The Date.prototype has the property "setUTCMilliseconds"'); + throw new Test262Error('#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 3953abfe69..19fa3cc01c 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,5 +8,5 @@ description: The Date.prototype has the property "setSeconds" ---*/ if (Date.prototype.hasOwnProperty("setSeconds") !== true) { - $ERROR('#1: The Date.prototype has the property "setSeconds"'); + throw new Test262Error('#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 dadc0b22e8..292cf7e210 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,5 +8,5 @@ description: The Date.prototype has the property "setUTCSeconds" ---*/ if (Date.prototype.hasOwnProperty("setUTCSeconds") !== true) { - $ERROR('#1: The Date.prototype has the property "setUTCSeconds"'); + throw new Test262Error('#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 601a4db345..fad5f62ed4 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,5 +8,5 @@ description: The Date.prototype has the property "setMinutes" ---*/ if (Date.prototype.hasOwnProperty("setMinutes") !== true) { - $ERROR('#1: The Date.prototype has the property "setMinutes"'); + throw new Test262Error('#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 14e18a9a5c..12e232c17b 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,5 +8,5 @@ description: The Date.prototype has the property "setUTCMinutes" ---*/ if (Date.prototype.hasOwnProperty("setUTCMinutes") !== true) { - $ERROR('#1: The Date.prototype has the property "setUTCMinutes"'); + throw new Test262Error('#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 4d6c768c21..369c6155a6 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,5 +8,5 @@ description: The Date.prototype has the property "setHours" ---*/ if (Date.prototype.hasOwnProperty("setHours") !== true) { - $ERROR('#1: The Date.prototype has the property "setHours"'); + throw new Test262Error('#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 fa904d246f..31a5ae75a5 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,5 +8,5 @@ description: The Date.prototype has the property "setUTCHours" ---*/ if (Date.prototype.hasOwnProperty("setUTCHours") !== true) { - $ERROR('#1: The Date.prototype has the property "setUTCHours"'); + throw new Test262Error('#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 e288064d03..5e34b0b303 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,5 +8,5 @@ description: The Date.prototype has the property "setDate" ---*/ if (Date.prototype.hasOwnProperty("setDate") !== true) { - $ERROR('#1: The Date.prototype has the property "setDate"'); + throw new Test262Error('#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 4dfd7a1306..f2da4831c2 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,5 +8,5 @@ description: The Date.prototype has the property "setUTCDate" ---*/ if (Date.prototype.hasOwnProperty("setUTCDate") !== true) { - $ERROR('#1: The Date.prototype has the property "setUTCDate"'); + throw new Test262Error('#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 75fcd57cb6..8c696fcf7d 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,5 +8,5 @@ description: The Date.prototype has the property "setMonth" ---*/ if (Date.prototype.hasOwnProperty("setMonth") !== true) { - $ERROR('#1: The Date.prototype has the property "setMonth"'); + throw new Test262Error('#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 cde3d3ae1f..745f107778 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,5 +8,5 @@ description: The Date.prototype has the property "setUTCMonth" ---*/ if (Date.prototype.hasOwnProperty("setUTCMonth") !== true) { - $ERROR('#1: The Date.prototype has the property "setUTCMonth"'); + throw new Test262Error('#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 b312435185..af0d98414b 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,5 +8,5 @@ description: The Date.prototype has the property "setFullYear" ---*/ if (Date.prototype.hasOwnProperty("setFullYear") !== true) { - $ERROR('#1: The Date.prototype has the property "setFullYear"'); + throw new Test262Error('#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 7b09821511..488ee62792 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,5 +8,5 @@ description: The Date.prototype has the property "setUTCFullYear" ---*/ if (Date.prototype.hasOwnProperty("setUTCFullYear") !== true) { - $ERROR('#1: The Date.prototype has the property "setUTCFullYear"'); + throw new Test262Error('#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 2a3975abde..8775bf8337 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,5 +8,5 @@ description: The Date.prototype has the property "toUTCString" ---*/ if (Date.prototype.hasOwnProperty("toUTCString") !== true) { - $ERROR('#1: The Date.prototype has the property "toUTCString"'); + throw new Test262Error('#1: The Date.prototype has the property "toUTCString"'); } 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 87d8ee9356..4ac2a607eb 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.constructor = 1; if (Date.prototype.constructor === x) { - $ERROR('#1: The Date.prototype.constructor has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.constructor has not the attribute ReadOnly'); } 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 2d10e9eabd..bd8433b48a 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.constructor === false) { - $ERROR('#1: The Date.prototype.constructor property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.constructor property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('constructor')) { - $ERROR('#2: The Date.prototype.constructor property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 fb54354e39..b1aeee0457 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('constructor')) { - $ERROR('#1: The Date.prototype.constructor property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.constructor property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "constructor") { - $ERROR('#2: The Date.prototype.constructor has the attribute DontEnum'); + throw new Test262Error('#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 b544f6fbc7..394573626c 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,9 +8,9 @@ description: The "length" property of the "constructor" is 7 ---*/ if (Date.prototype.constructor.hasOwnProperty("length") !== true) { - $ERROR('#1: The constructor has a "length" property'); + throw new Test262Error('#1: The constructor has a "length" property'); } if (Date.prototype.constructor.length !== 7) { - $ERROR('#2: The "length" property of the constructor is 7'); + throw new Test262Error('#2: The "length" property of the constructor is 7'); } diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T1.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T1.js index d50a45e2d9..ae370e614d 100644 --- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T1.js +++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.constructor.length; verifyNotWritable(Date.prototype.constructor, "length", null, 1); if (Date.prototype.constructor.length !== x) { - $ERROR('#1: The Date.prototype.constructor.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.constructor.length has the attribute ReadOnly'); } 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 d423f46ef8..ffce48d488 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.constructor.length !== true) { - $ERROR('#1: The Date.prototype.constructor.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.constructor.length property does not have the attributes DontDelete'); } if (Date.prototype.constructor.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.constructor.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 8313ba809b..11b5923593 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.constructor.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.constructor.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.constructor.length property has the attribute DontEnum'); } for (var x in Date.prototype.constructor) { if (x === "length") { - $ERROR('#2: The Date.prototype.constructor.length has the attribute DontEnum'); + throw new Test262Error('#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 900a889166..cae70b3ce8 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getDate = 1; if (Date.prototype.getDate === x) { - $ERROR('#1: The Date.prototype.getDate has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getDate has not the attribute ReadOnly'); } 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 14d41b0198..3aefd37378 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getDate === false) { - $ERROR('#1: The Date.prototype.getDate property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getDate property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getDate')) { - $ERROR('#2: The Date.prototype.getDate property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 d0929e8e0b..d4b9f97ff8 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getDate')) { - $ERROR('#1: The Date.prototype.getDate property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getDate property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getDate") { - $ERROR('#2: The Date.prototype.getDate has the attribute DontEnum'); + throw new Test262Error('#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 24627dc3ee..b60598b38c 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,9 +8,9 @@ description: The "length" property of the "getDate" is 0 ---*/ if (Date.prototype.getDate.hasOwnProperty("length") !== true) { - $ERROR('#1: The getDate has a "length" property'); + throw new Test262Error('#1: The getDate has a "length" property'); } if (Date.prototype.getDate.length !== 0) { - $ERROR('#2: The "length" property of the getDate is 0'); + throw new Test262Error('#2: The "length" property of the getDate is 0'); } diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T1.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T1.js index 33fa9760ea..94b95493f9 100644 --- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T1.js +++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getDate.length; verifyNotWritable(Date.prototype.getDate, "length", null, 1); if (Date.prototype.getDate.length !== x) { - $ERROR('#1: The Date.prototype.getDate.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getDate.length has the attribute ReadOnly'); } 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 2a62ba4957..133b01fc9f 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getDate.length !== true) { - $ERROR('#1: The Date.prototype.getDate.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getDate.length property does not have the attributes DontDelete'); } if (Date.prototype.getDate.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getDate.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 03c30cba40..1ad5333a4e 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getDate.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getDate.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getDate.length property has the attribute DontEnum'); } for (var x in Date.prototype.getDate) { if (x === "length") { - $ERROR('#2: The Date.prototype.getDate.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getDate.length has the attribute DontEnum'); } } 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 dd0195edc3..de68f3a8f4 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 @@ -14,5 +14,5 @@ if (x === 1) else Date.prototype.getDay = 1; if (Date.prototype.getDay === x) { - $ERROR('#1: The Date.prototype.getDay has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getDay has not the attribute ReadOnly'); } 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 dc5b545841..10b4a63aba 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 @@ -9,9 +9,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getDay === false) { - $ERROR('#1: The Date.prototype.getDay property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getDay property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getDay')) { - $ERROR('#2: The Date.prototype.getDay property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 d7c241aaad..631d48787e 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 @@ -9,11 +9,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getDay')) { - $ERROR('#1: The Date.prototype.getDay property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getDay property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getDay") { - $ERROR('#2: The Date.prototype.getDay has the attribute DontEnum'); + throw new Test262Error('#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 f9ab232680..43779b0b75 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 @@ -9,9 +9,9 @@ description: The "length" property of the "getDay" is 0 ---*/ if (Date.prototype.getDay.hasOwnProperty("length") !== true) { - $ERROR('#1: The getDay has a "length" property'); + throw new Test262Error('#1: The getDay has a "length" property'); } if (Date.prototype.getDay.length !== 0) { - $ERROR('#2: The "length" property of the getDay is 0'); + throw new Test262Error('#2: The "length" property of the getDay is 0'); } diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T1.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T1.js index bf7b592f24..0e872efb21 100644 --- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T1.js +++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T1.js @@ -14,5 +14,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getDay.length; verifyNotWritable(Date.prototype.getDay, "length", null, 1); if (Date.prototype.getDay.length !== x) { - $ERROR('#1: The Date.prototype.getDay.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getDay.length has the attribute ReadOnly'); } 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 fa7ea6a930..0da574c842 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 @@ -11,9 +11,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getDay.length !== true) { - $ERROR('#1: The Date.prototype.getDay.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getDay.length property does not have the attributes DontDelete'); } if (Date.prototype.getDay.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getDay.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 e0c5e04e38..86651c3a03 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 @@ -11,11 +11,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getDay.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getDay.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getDay.length property has the attribute DontEnum'); } for (var x in Date.prototype.getDay) { if (x === "length") { - $ERROR('#2: The Date.prototype.getDay.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getDay.length has the attribute DontEnum'); } } 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 54897a558c..71291e9226 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 @@ -14,5 +14,5 @@ if (x === 1) else Date.prototype.getFullYear = 1; if (Date.prototype.getFullYear === x) { - $ERROR('#1: The Date.prototype.getFullYear has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getFullYear has not the attribute ReadOnly'); } 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 bfc30f4390..07fe467d32 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 @@ -9,9 +9,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getFullYear === false) { - $ERROR('#1: The Date.prototype.getFullYear property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getFullYear property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getFullYear')) { - $ERROR('#2: The Date.prototype.getFullYear property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 bc6e973095..4882ee2d3e 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 @@ -9,11 +9,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getFullYear')) { - $ERROR('#1: The Date.prototype.getFullYear property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getFullYear property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getFullYear") { - $ERROR('#2: The Date.prototype.getFullYear has the attribute DontEnum'); + throw new Test262Error('#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 e6126c6a1c..48bcdb8043 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 @@ -9,9 +9,9 @@ description: The "length" property of the "getFullYear" is 0 ---*/ if (Date.prototype.getFullYear.hasOwnProperty("length") !== true) { - $ERROR('#1: The getFullYear has a "length" property'); + throw new Test262Error('#1: The getFullYear has a "length" property'); } if (Date.prototype.getFullYear.length !== 0) { - $ERROR('#2: The "length" property of the getFullYear is 0'); + throw new Test262Error('#2: The "length" property of the getFullYear is 0'); } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T1.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T1.js index 7645a2f309..1875cb083d 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T1.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T1.js @@ -14,5 +14,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getFullYear.length; verifyNotWritable(Date.prototype.getFullYear, "length", null, 1); if (Date.prototype.getFullYear.length !== x) { - $ERROR('#1: The Date.prototype.getFullYear.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getFullYear.length has the attribute ReadOnly'); } 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 9bdbc7d895..02d4fd5935 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 @@ -11,9 +11,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getFullYear.length !== true) { - $ERROR('#1: The Date.prototype.getFullYear.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getFullYear.length property does not have the attributes DontDelete'); } if (Date.prototype.getFullYear.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getFullYear.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 7fedce52a1..7607da295a 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 @@ -11,11 +11,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getFullYear.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getFullYear.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getFullYear.length property has the attribute DontEnum'); } for (var x in Date.prototype.getFullYear) { if (x === "length") { - $ERROR('#2: The Date.prototype.getFullYear.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getFullYear.length has the attribute DontEnum'); } } 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 b587f199e1..3aff5183c0 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 @@ -14,5 +14,5 @@ if (x === 1) else Date.prototype.getHours = 1; if (Date.prototype.getHours === x) { - $ERROR('#1: The Date.prototype.getHours has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getHours has not the attribute ReadOnly'); } 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 08824758c7..954800e92b 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 @@ -9,9 +9,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getHours === false) { - $ERROR('#1: The Date.prototype.getHours property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getHours property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getHours')) { - $ERROR('#2: The Date.prototype.getHours property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 eb6d465017..54a9568ce5 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 @@ -9,11 +9,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getHours')) { - $ERROR('#1: The Date.prototype.getHours property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getHours property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getHours") { - $ERROR('#2: The Date.prototype.getHours has the attribute DontEnum'); + throw new Test262Error('#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 81af2ec449..e210da7e03 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 @@ -9,9 +9,9 @@ description: The "length" property of the "getHours" is 0 ---*/ if (Date.prototype.getHours.hasOwnProperty("length") !== true) { - $ERROR('#1: The getHours has a "length" property'); + throw new Test262Error('#1: The getHours has a "length" property'); } if (Date.prototype.getHours.length !== 0) { - $ERROR('#2: The "length" property of the getHours is 0'); + throw new Test262Error('#2: The "length" property of the getHours is 0'); } diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T1.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T1.js index 38dee5ce1e..799712b687 100644 --- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T1.js +++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T1.js @@ -14,5 +14,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getHours.length; verifyNotWritable(Date.prototype.getHours, "length", null, 1); if (Date.prototype.getHours.length !== x) { - $ERROR('#1: The Date.prototype.getHours.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getHours.length has the attribute ReadOnly'); } 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 2f00e05fd2..a84f20c0af 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 @@ -11,9 +11,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getHours.length !== true) { - $ERROR('#1: The Date.prototype.getHours.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getHours.length property does not have the attributes DontDelete'); } if (Date.prototype.getHours.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getHours.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 ad3d3e28ab..114da52382 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 @@ -11,11 +11,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getHours.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getHours.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getHours.length property has the attribute DontEnum'); } for (var x in Date.prototype.getHours) { if (x === "length") { - $ERROR('#2: The Date.prototype.getHours.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getHours.length has the attribute DontEnum'); } } 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 d1e27ba34c..5d99f983ba 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 @@ -14,5 +14,5 @@ if (x === 1) else Date.prototype.getMilliseconds = 1; if (Date.prototype.getMilliseconds === x) { - $ERROR('#1: The Date.prototype.getMilliseconds has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getMilliseconds has not the attribute ReadOnly'); } 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 41309fa454..1cf4ec89ac 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 @@ -9,9 +9,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getMilliseconds === false) { - $ERROR('#1: The Date.prototype.getMilliseconds property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getMilliseconds property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getMilliseconds')) { - $ERROR('#2: The Date.prototype.getMilliseconds property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 38483bcc47..e02b018187 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 @@ -9,11 +9,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getMilliseconds')) { - $ERROR('#1: The Date.prototype.getMilliseconds property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getMilliseconds property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getMilliseconds") { - $ERROR('#2: The Date.prototype.getMilliseconds has the attribute DontEnum'); + throw new Test262Error('#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 e564b8cb8e..99afc55463 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 @@ -9,9 +9,9 @@ description: The "length" property of the "getMilliseconds" is 0 ---*/ if (Date.prototype.getMilliseconds.hasOwnProperty("length") !== true) { - $ERROR('#1: The getMilliseconds has a "length" property'); + throw new Test262Error('#1: The getMilliseconds has a "length" property'); } if (Date.prototype.getMilliseconds.length !== 0) { - $ERROR('#2: The "length" property of the getMilliseconds is 0'); + throw new Test262Error('#2: The "length" property of the getMilliseconds is 0'); } diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T1.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T1.js index 1782611751..5cd71263a7 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T1.js +++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T1.js @@ -14,5 +14,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getMilliseconds.length; verifyNotWritable(Date.prototype.getMilliseconds, "length", null, 1); if (Date.prototype.getMilliseconds.length !== x) { - $ERROR('#1: The Date.prototype.getMilliseconds.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getMilliseconds.length has the attribute ReadOnly'); } 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 02f01b39ea..b6e11b2360 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 @@ -11,9 +11,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getMilliseconds.length !== true) { - $ERROR('#1: The Date.prototype.getMilliseconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getMilliseconds.length property does not have the attributes DontDelete'); } if (Date.prototype.getMilliseconds.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getMilliseconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 303c244a2c..823a731765 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 @@ -11,11 +11,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getMilliseconds.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getMilliseconds.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getMilliseconds.length property has the attribute DontEnum'); } for (var x in Date.prototype.getMilliseconds) { if (x === "length") { - $ERROR('#2: The Date.prototype.getMilliseconds.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getMilliseconds.length has the attribute DontEnum'); } } 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 b41afec04f..d78b5bd7f6 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 @@ -14,5 +14,5 @@ if (x === 1) else Date.prototype.getMinutes = 1; if (Date.prototype.getMinutes === x) { - $ERROR('#1: The Date.prototype.getMinutes has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getMinutes has not the attribute ReadOnly'); } 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 a219893050..adae9a2049 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 @@ -9,9 +9,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getMinutes === false) { - $ERROR('#1: The Date.prototype.getMinutes property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getMinutes property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getMinutes')) { - $ERROR('#2: The Date.prototype.getMinutes property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 5992ea3fe6..a9ec66c11f 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 @@ -9,11 +9,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getMinutes')) { - $ERROR('#1: The Date.prototype.getMinutes property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getMinutes property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getMinutes") { - $ERROR('#2: The Date.prototype.getMinutes has the attribute DontEnum'); + throw new Test262Error('#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 6b83032daf..5279c2e67e 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 @@ -9,9 +9,9 @@ description: The "length" property of the "getMinutes" is 0 ---*/ if (Date.prototype.getMinutes.hasOwnProperty("length") !== true) { - $ERROR('#1: The getMinutes has a "length" property'); + throw new Test262Error('#1: The getMinutes has a "length" property'); } if (Date.prototype.getMinutes.length !== 0) { - $ERROR('#2: The "length" property of the getMinutes is 0'); + throw new Test262Error('#2: The "length" property of the getMinutes is 0'); } diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T1.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T1.js index 5d9fd804e3..11b6960870 100644 --- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T1.js +++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T1.js @@ -14,5 +14,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getMinutes.length; verifyNotWritable(Date.prototype.getMinutes, "length", null, 1); if (Date.prototype.getMinutes.length !== x) { - $ERROR('#1: The Date.prototype.getMinutes.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getMinutes.length has the attribute ReadOnly'); } 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 f8b013db84..fd84b84305 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 @@ -11,9 +11,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getMinutes.length !== true) { - $ERROR('#1: The Date.prototype.getMinutes.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getMinutes.length property does not have the attributes DontDelete'); } if (Date.prototype.getMinutes.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getMinutes.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 92454620e9..640c104b90 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 @@ -11,11 +11,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getMinutes.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getMinutes.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getMinutes.length property has the attribute DontEnum'); } for (var x in Date.prototype.getMinutes) { if (x === "length") { - $ERROR('#2: The Date.prototype.getMinutes.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getMinutes.length has the attribute DontEnum'); } } 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 f7fae41379..2f18458e9a 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getMonth = 1; if (Date.prototype.getMonth === x) { - $ERROR('#1: The Date.prototype.getMonth has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getMonth has not the attribute ReadOnly'); } 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 2a402910a4..6c224510a7 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getMonth === false) { - $ERROR('#1: The Date.prototype.getMonth property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getMonth property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getMonth')) { - $ERROR('#2: The Date.prototype.getMonth property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 7dca161971..44bb484e43 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getMonth')) { - $ERROR('#1: The Date.prototype.getMonth property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getMonth property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getMonth") { - $ERROR('#2: The Date.prototype.getMonth has the attribute DontEnum'); + throw new Test262Error('#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 3d76cc21f2..635f258a4b 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,9 +8,9 @@ description: The "length" property of the "getMonth" is 0 ---*/ if (Date.prototype.getMonth.hasOwnProperty("length") !== true) { - $ERROR('#1: The getMonth has a "length" property'); + throw new Test262Error('#1: The getMonth has a "length" property'); } if (Date.prototype.getMonth.length !== 0) { - $ERROR('#2: The "length" property of the getMonth is 0'); + throw new Test262Error('#2: The "length" property of the getMonth is 0'); } diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T1.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T1.js index c749c0f148..723ce4c495 100644 --- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T1.js +++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getMonth.length; verifyNotWritable(Date.prototype.getMonth, "length", null, 1); if (Date.prototype.getMonth.length !== x) { - $ERROR('#1: The Date.prototype.getMonth.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getMonth.length has the attribute ReadOnly'); } 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 01e402c349..a055dee818 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getMonth.length !== true) { - $ERROR('#1: The Date.prototype.getMonth.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getMonth.length property does not have the attributes DontDelete'); } if (Date.prototype.getMonth.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getMonth.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 c9a619c465..8eadd1bbba 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getMonth.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getMonth.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getMonth.length property has the attribute DontEnum'); } for (var x in Date.prototype.getMonth) { if (x === "length") { - $ERROR('#2: The Date.prototype.getMonth.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getMonth.length has the attribute DontEnum'); } } 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 ff508927ca..e70780c43c 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getSeconds = 1; if (Date.prototype.getSeconds === x) { - $ERROR('#1: The Date.prototype.getSeconds has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getSeconds has not the attribute ReadOnly'); } 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 ce58ae8e8a..823eefd2f2 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getSeconds === false) { - $ERROR('#1: The Date.prototype.getSeconds property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getSeconds property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getSeconds')) { - $ERROR('#2: The Date.prototype.getSeconds property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 652b6fb5cc..fcaef851fb 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getSeconds')) { - $ERROR('#1: The Date.prototype.getSeconds property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getSeconds property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getSeconds") { - $ERROR('#2: The Date.prototype.getSeconds has the attribute DontEnum'); + throw new Test262Error('#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 0857238f68..76fa2ddf8c 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,9 +8,9 @@ description: The "length" property of the "getSeconds" is 0 ---*/ if (Date.prototype.getSeconds.hasOwnProperty("length") !== true) { - $ERROR('#1: The getSeconds has a "length" property'); + throw new Test262Error('#1: The getSeconds has a "length" property'); } if (Date.prototype.getSeconds.length !== 0) { - $ERROR('#2: The "length" property of the getSeconds is 0'); + throw new Test262Error('#2: The "length" property of the getSeconds is 0'); } diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T1.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T1.js index ae7c11e6e0..ef5d04a412 100644 --- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T1.js +++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getSeconds.length; verifyNotWritable(Date.prototype.getSeconds, "length", null, 1); if (Date.prototype.getSeconds.length !== x) { - $ERROR('#1: The Date.prototype.getSeconds.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getSeconds.length has the attribute ReadOnly'); } 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 16c655022e..2ce51ada52 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getSeconds.length !== true) { - $ERROR('#1: The Date.prototype.getSeconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getSeconds.length property does not have the attributes DontDelete'); } if (Date.prototype.getSeconds.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getSeconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 1fe88fefb0..e2ea2bde26 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getSeconds.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getSeconds.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getSeconds.length property has the attribute DontEnum'); } for (var x in Date.prototype.getSeconds) { if (x === "length") { - $ERROR('#2: The Date.prototype.getSeconds.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getSeconds.length has the attribute DontEnum'); } } 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 366469db73..b1fea00f42 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getTime = 1; if (Date.prototype.getTime === x) { - $ERROR('#1: The Date.prototype.getTime has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getTime has not the attribute ReadOnly'); } 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 85e65ab67c..78d3754547 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getTime === false) { - $ERROR('#1: The Date.prototype.getTime property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getTime property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getTime')) { - $ERROR('#2: The Date.prototype.getTime property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 67bc11f1c7..451bdc9d32 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getTime')) { - $ERROR('#1: The Date.prototype.getTime property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getTime property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getTime") { - $ERROR('#2: The Date.prototype.getTime has the attribute DontEnum'); + throw new Test262Error('#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 d09cbfca90..265b8556e5 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,9 +8,9 @@ description: The "length" property of the "getTime" is 0 ---*/ if (Date.prototype.getTime.hasOwnProperty("length") !== true) { - $ERROR('#1: The getTime has a "length" property'); + throw new Test262Error('#1: The getTime has a "length" property'); } if (Date.prototype.getTime.length !== 0) { - $ERROR('#2: The "length" property of the getTime is 0'); + throw new Test262Error('#2: The "length" property of the getTime is 0'); } diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T1.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T1.js index 9ed560e135..fedd5fdbf5 100644 --- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T1.js +++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getTime.length; verifyNotWritable(Date.prototype.getTime, "length", null, 1); if (Date.prototype.getTime.length !== x) { - $ERROR('#1: The Date.prototype.getTime.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getTime.length has the attribute ReadOnly'); } 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 4d2162fec8..e7d16a3c98 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getTime.length !== true) { - $ERROR('#1: The Date.prototype.getTime.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getTime.length property does not have the attributes DontDelete'); } if (Date.prototype.getTime.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getTime.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 6e0fca04e7..4662c578cd 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getTime.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getTime.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getTime.length property has the attribute DontEnum'); } for (var x in Date.prototype.getTime) { if (x === "length") { - $ERROR('#2: The Date.prototype.getTime.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getTime.length has the attribute DontEnum'); } } 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 58b83a40aa..4aadf8458e 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 @@ -15,5 +15,5 @@ if (x === 1) else Date.prototype.getTimezoneOffset = 1; if (Date.prototype.getTimezoneOffset === x) { - $ERROR('#1: The Date.prototype.getTimezoneOffset has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getTimezoneOffset has not the attribute ReadOnly'); } 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 8c97a16ab5..7286689308 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,9 +10,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getTimezoneOffset === false) { - $ERROR('#1: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getTimezoneOffset')) { - $ERROR('#2: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 2dc4ab1623..c9ed01368c 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getTimezoneOffset')) { - $ERROR('#1: The Date.prototype.getTimezoneOffset property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getTimezoneOffset property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getTimezoneOffset") { - $ERROR('#2: The Date.prototype.getTimezoneOffset has the attribute DontEnum'); + throw new Test262Error('#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 76bf9ed8c9..8203a64e20 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,9 +8,9 @@ description: The "length" property of the "getTimezoneOffset" is 0 ---*/ if (Date.prototype.getTimezoneOffset.hasOwnProperty("length") !== true) { - $ERROR('#1: The getTimezoneOffset has a "length" property'); + throw new Test262Error('#1: The getTimezoneOffset has a "length" property'); } if (Date.prototype.getTimezoneOffset.length !== 0) { - $ERROR('#2: The "length" property of the getTimezoneOffset is 0'); + throw new Test262Error('#2: The "length" property of the getTimezoneOffset is 0'); } diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T1.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T1.js index 75574b234a..5a48cf1724 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T1.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getTimezoneOffset.length; verifyNotWritable(Date.prototype.getTimezoneOffset, "length", null, 1); if (Date.prototype.getTimezoneOffset.length !== x) { - $ERROR('#1: The Date.prototype.getTimezoneOffset.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getTimezoneOffset.length has the attribute ReadOnly'); } 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 fff7deb8cb..3971044010 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getTimezoneOffset.length !== true) { - $ERROR('#1: The Date.prototype.getTimezoneOffset.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getTimezoneOffset.length property does not have the attributes DontDelete'); } if (Date.prototype.getTimezoneOffset.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getTimezoneOffset.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 0bf783bd82..39378802a2 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getTimezoneOffset.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getTimezoneOffset.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getTimezoneOffset.length property has the attribute DontEnum'); } for (var x in Date.prototype.getTimezoneOffset) { if (x === "length") { - $ERROR('#2: The Date.prototype.getTimezoneOffset.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getTimezoneOffset.length has the attribute DontEnum'); } } 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 66f00ae831..2a00a9e757 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getUTCDate = 1; if (Date.prototype.getUTCDate === x) { - $ERROR('#1: The Date.prototype.getUTCDate has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCDate has not the attribute ReadOnly'); } 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 b898823387..4c1bbd8470 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getUTCDate === false) { - $ERROR('#1: The Date.prototype.getUTCDate property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCDate property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getUTCDate')) { - $ERROR('#2: The Date.prototype.getUTCDate property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 1cc7f5d1f2..82586ec674 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getUTCDate')) { - $ERROR('#1: The Date.prototype.getUTCDate property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCDate property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getUTCDate") { - $ERROR('#2: The Date.prototype.getUTCDate has the attribute DontEnum'); + throw new Test262Error('#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 d6add16702..a8ca3b9495 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,9 +8,9 @@ description: The "length" property of the "getUTCDate" is 0 ---*/ if (Date.prototype.getUTCDate.hasOwnProperty("length") !== true) { - $ERROR('#1: The getUTCDate has a "length" property'); + throw new Test262Error('#1: The getUTCDate has a "length" property'); } if (Date.prototype.getUTCDate.length !== 0) { - $ERROR('#2: The "length" property of the getUTCDate is 0'); + throw new Test262Error('#2: The "length" property of the getUTCDate is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T1.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T1.js index 0c68e88066..08fcb32ee5 100644 --- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T1.js +++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getUTCDate.length; verifyNotWritable(Date.prototype.getUTCDate, "length", null, 1); if (Date.prototype.getUTCDate.length !== x) { - $ERROR('#1: The Date.prototype.getUTCDate.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCDate.length has the attribute ReadOnly'); } 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 2abb57ffeb..15de469a63 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getUTCDate.length !== true) { - $ERROR('#1: The Date.prototype.getUTCDate.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCDate.length property does not have the attributes DontDelete'); } if (Date.prototype.getUTCDate.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getUTCDate.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 220be62c95..2bec0cd71e 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getUTCDate.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getUTCDate.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCDate.length property has the attribute DontEnum'); } for (var x in Date.prototype.getUTCDate) { if (x === "length") { - $ERROR('#2: The Date.prototype.getUTCDate.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getUTCDate.length has the attribute DontEnum'); } } 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 644a87982d..0e28a28f52 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getUTCDay = 1; if (Date.prototype.getUTCDay === x) { - $ERROR('#1: The Date.prototype.getUTCDay has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCDay has not the attribute ReadOnly'); } 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 128a72d6c2..57c31a792f 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getUTCDay === false) { - $ERROR('#1: The Date.prototype.getUTCDay property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCDay property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getUTCDay')) { - $ERROR('#2: The Date.prototype.getUTCDay property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 c2421bfdee..58a1a7ce0f 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getUTCDay')) { - $ERROR('#1: The Date.prototype.getUTCDay property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCDay property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getUTCDay") { - $ERROR('#2: The Date.prototype.getUTCDay has the attribute DontEnum'); + throw new Test262Error('#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 82da81a7a8..df43352437 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,9 +8,9 @@ description: The "length" property of the "getUTCDay" is 0 ---*/ if (Date.prototype.getUTCDay.hasOwnProperty("length") !== true) { - $ERROR('#1: The getUTCDay has a "length" property'); + throw new Test262Error('#1: The getUTCDay has a "length" property'); } if (Date.prototype.getUTCDay.length !== 0) { - $ERROR('#2: The "length" property of the getUTCDay is 0'); + throw new Test262Error('#2: The "length" property of the getUTCDay is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T1.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T1.js index 2b8f4bbbf8..a590a97113 100644 --- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T1.js +++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getUTCDay.length; verifyNotWritable(Date.prototype.getUTCDay, "length", null, 1); if (Date.prototype.getUTCDay.length !== x) { - $ERROR('#1: The Date.prototype.getUTCDay.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCDay.length has the attribute ReadOnly'); } 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 ddac684e5e..e3f9a858b0 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getUTCDay.length !== true) { - $ERROR('#1: The Date.prototype.getUTCDay.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCDay.length property does not have the attributes DontDelete'); } if (Date.prototype.getUTCDay.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getUTCDay.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 7587d902af..a5c5f5ada7 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getUTCDay.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getUTCDay.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCDay.length property has the attribute DontEnum'); } for (var x in Date.prototype.getUTCDay) { if (x === "length") { - $ERROR('#2: The Date.prototype.getUTCDay.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getUTCDay.length has the attribute DontEnum'); } } 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 f4a2807797..a6a40e6696 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getUTCFullYear = 1; if (Date.prototype.getUTCFullYear === x) { - $ERROR('#1: The Date.prototype.getUTCFullYear has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCFullYear has not the attribute ReadOnly'); } 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 df12710908..088c070851 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getUTCFullYear === false) { - $ERROR('#1: The Date.prototype.getUTCFullYear property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCFullYear property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getUTCFullYear')) { - $ERROR('#2: The Date.prototype.getUTCFullYear property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 25072578ee..520b318372 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getUTCFullYear')) { - $ERROR('#1: The Date.prototype.getUTCFullYear property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCFullYear property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getUTCFullYear") { - $ERROR('#2: The Date.prototype.getUTCFullYear has the attribute DontEnum'); + throw new Test262Error('#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 9db7fb93fa..7e1835fa4e 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,9 +8,9 @@ description: The "length" property of the "getUTCFullYear" is 0 ---*/ if (Date.prototype.getUTCFullYear.hasOwnProperty("length") !== true) { - $ERROR('#1: The getUTCFullYear has a "length" property'); + throw new Test262Error('#1: The getUTCFullYear has a "length" property'); } if (Date.prototype.getUTCFullYear.length !== 0) { - $ERROR('#2: The "length" property of the getUTCFullYear is 0'); + throw new Test262Error('#2: The "length" property of the getUTCFullYear is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T1.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T1.js index a2c78d30cb..e575954e79 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T1.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getUTCFullYear.length; verifyNotWritable(Date.prototype.getUTCFullYear, "length", null, 1); if (Date.prototype.getUTCFullYear.length !== x) { - $ERROR('#1: The Date.prototype.getUTCFullYear.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCFullYear.length has the attribute ReadOnly'); } 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 0cf06c3675..186d4270b5 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getUTCFullYear.length !== true) { - $ERROR('#1: The Date.prototype.getUTCFullYear.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCFullYear.length property does not have the attributes DontDelete'); } if (Date.prototype.getUTCFullYear.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getUTCFullYear.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 eccdd11ab8..47f19f00b3 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getUTCFullYear.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getUTCFullYear.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCFullYear.length property has the attribute DontEnum'); } for (var x in Date.prototype.getUTCFullYear) { if (x === "length") { - $ERROR('#2: The Date.prototype.getUTCFullYear.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getUTCFullYear.length has the attribute DontEnum'); } } 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 e3b1dc5014..61c6183555 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getUTCHours = 1; if (Date.prototype.getUTCHours === x) { - $ERROR('#1: The Date.prototype.getUTCHours has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCHours has not the attribute ReadOnly'); } 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 75f8dfdd75..43a4b7b1d7 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getUTCHours === false) { - $ERROR('#1: The Date.prototype.getUTCHours property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCHours property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getUTCHours')) { - $ERROR('#2: The Date.prototype.getUTCHours property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 27fdc7ef7c..2bf3d22bb7 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getUTCHours')) { - $ERROR('#1: The Date.prototype.getUTCHours property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCHours property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getUTCHours") { - $ERROR('#2: The Date.prototype.getUTCHours has the attribute DontEnum'); + throw new Test262Error('#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 ada287bc6e..cf89a7186f 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,9 +8,9 @@ description: The "length" property of the "getUTCHours" is 0 ---*/ if (Date.prototype.getUTCHours.hasOwnProperty("length") !== true) { - $ERROR('#1: The getUTCHours has a "length" property'); + throw new Test262Error('#1: The getUTCHours has a "length" property'); } if (Date.prototype.getUTCHours.length !== 0) { - $ERROR('#2: The "length" property of the getUTCHours is 0'); + throw new Test262Error('#2: The "length" property of the getUTCHours is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T1.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T1.js index 58243b507a..0ddb92cf02 100644 --- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T1.js +++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getUTCHours.length; verifyNotWritable(Date.prototype.getUTCHours, "length", null, 1); if (Date.prototype.getUTCHours.length !== x) { - $ERROR('#1: The Date.prototype.getUTCHours.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCHours.length has the attribute ReadOnly'); } 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 6c8b0b3128..5664cc575c 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getUTCHours.length !== true) { - $ERROR('#1: The Date.prototype.getUTCHours.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCHours.length property does not have the attributes DontDelete'); } if (Date.prototype.getUTCHours.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getUTCHours.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 acb9092f35..29d909c318 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getUTCHours.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getUTCHours.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCHours.length property has the attribute DontEnum'); } for (var x in Date.prototype.getUTCHours) { if (x === "length") { - $ERROR('#2: The Date.prototype.getUTCHours.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getUTCHours.length has the attribute DontEnum'); } } 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 dd12c55d7e..c2f1058dc4 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 @@ -15,5 +15,5 @@ if (x === 1) else Date.prototype.getUTCMilliseconds = 1; if (Date.prototype.getUTCMilliseconds === x) { - $ERROR('#1: The Date.prototype.getUTCMilliseconds has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCMilliseconds has not the attribute ReadOnly'); } 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 46ecd8c270..10c42237ce 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,9 +10,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getUTCMilliseconds === false) { - $ERROR('#1: The Date.prototype.getUTCMilliseconds property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCMilliseconds property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getUTCMilliseconds')) { - $ERROR('#2: The Date.prototype.getUTCMilliseconds property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 77bf3cc91a..eb089c86a6 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getUTCMilliseconds')) { - $ERROR('#1: The Date.prototype.getUTCMilliseconds property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCMilliseconds property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getUTCMilliseconds") { - $ERROR('#2: The Date.prototype.getUTCMilliseconds has the attribute DontEnum'); + throw new Test262Error('#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 08c5f4f468..6dbcf0ce90 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,9 +8,9 @@ description: The "length" property of the "getUTCMilliseconds" is 0 ---*/ if (Date.prototype.getUTCMilliseconds.hasOwnProperty("length") !== true) { - $ERROR('#1: The getUTCMilliseconds has a "length" property'); + throw new Test262Error('#1: The getUTCMilliseconds has a "length" property'); } if (Date.prototype.getUTCMilliseconds.length !== 0) { - $ERROR('#2: The "length" property of the getUTCMilliseconds is 0'); + throw new Test262Error('#2: The "length" property of the getUTCMilliseconds is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T1.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T1.js index 52eaa9a58e..70403bfd0b 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T1.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getUTCMilliseconds.length; verifyNotWritable(Date.prototype.getUTCMilliseconds, "length", null, 1); if (Date.prototype.getUTCMilliseconds.length !== x) { - $ERROR('#1: The Date.prototype.getUTCMilliseconds.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCMilliseconds.length has the attribute ReadOnly'); } 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 0e61b88581..f02792096d 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getUTCMilliseconds.length !== true) { - $ERROR('#1: The Date.prototype.getUTCMilliseconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCMilliseconds.length property does not have the attributes DontDelete'); } if (Date.prototype.getUTCMilliseconds.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getUTCMilliseconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 cd2777349b..172e2643a4 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getUTCMilliseconds.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getUTCMilliseconds.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCMilliseconds.length property has the attribute DontEnum'); } for (var x in Date.prototype.getUTCMilliseconds) { if (x === "length") { - $ERROR('#2: The Date.prototype.getUTCMilliseconds.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getUTCMilliseconds.length has the attribute DontEnum'); } } 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 5bd473a543..5f693bdd1b 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getUTCMinutes = 1; if (Date.prototype.getUTCMinutes === x) { - $ERROR('#1: The Date.prototype.getUTCMinutes has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCMinutes has not the attribute ReadOnly'); } 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 5214d2dbc0..4c3a4a27c4 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getUTCMinutes === false) { - $ERROR('#1: The Date.prototype.getUTCMinutes property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCMinutes property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getUTCMinutes')) { - $ERROR('#2: The Date.prototype.getUTCMinutes property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 06d4e43194..99dca5b884 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getUTCMinutes')) { - $ERROR('#1: The Date.prototype.getUTCMinutes property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCMinutes property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getUTCMinutes") { - $ERROR('#2: The Date.prototype.getUTCMinutes has the attribute DontEnum'); + throw new Test262Error('#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 7108daa833..303f62486f 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,9 +8,9 @@ description: The "length" property of the "getUTCMinutes" is 0 ---*/ if (Date.prototype.getUTCMinutes.hasOwnProperty("length") !== true) { - $ERROR('#1: The getUTCMinutes has a "length" property'); + throw new Test262Error('#1: The getUTCMinutes has a "length" property'); } if (Date.prototype.getUTCMinutes.length !== 0) { - $ERROR('#2: The "length" property of the getUTCMinutes is 0'); + throw new Test262Error('#2: The "length" property of the getUTCMinutes is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T1.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T1.js index 64cb69e17a..d2aafd30c2 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T1.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getUTCMinutes.length; verifyNotWritable(Date.prototype.getUTCMinutes, "length", null, 1); if (Date.prototype.getUTCMinutes.length !== x) { - $ERROR('#1: The Date.prototype.getUTCMinutes.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCMinutes.length has the attribute ReadOnly'); } 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 b54aca963c..1de3ea9565 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getUTCMinutes.length !== true) { - $ERROR('#1: The Date.prototype.getUTCMinutes.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCMinutes.length property does not have the attributes DontDelete'); } if (Date.prototype.getUTCMinutes.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getUTCMinutes.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 0fa1eb67d2..64af83b7b2 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getUTCMinutes.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getUTCMinutes.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCMinutes.length property has the attribute DontEnum'); } for (var x in Date.prototype.getUTCMinutes) { if (x === "length") { - $ERROR('#2: The Date.prototype.getUTCMinutes.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getUTCMinutes.length has the attribute DontEnum'); } } 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 a765ec36cc..48196edd21 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getUTCMonth = 1; if (Date.prototype.getUTCMonth === x) { - $ERROR('#1: The Date.prototype.getUTCMonth has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCMonth has not the attribute ReadOnly'); } 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 e5b23cabab..5d6e6ae7a1 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getUTCMonth === false) { - $ERROR('#1: The Date.prototype.getUTCMonth property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCMonth property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getUTCMonth')) { - $ERROR('#2: The Date.prototype.getUTCMonth property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 61e42248e0..5ca9f16a5e 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getUTCMonth')) { - $ERROR('#1: The Date.prototype.getUTCMonth property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCMonth property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getUTCMonth") { - $ERROR('#2: The Date.prototype.getUTCMonth has the attribute DontEnum'); + throw new Test262Error('#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 33d73577ad..8f9121d921 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,9 +8,9 @@ description: The "length" property of the "getUTCMonth" is 0 ---*/ if (Date.prototype.getUTCMonth.hasOwnProperty("length") !== true) { - $ERROR('#1: The getUTCMonth has a "length" property'); + throw new Test262Error('#1: The getUTCMonth has a "length" property'); } if (Date.prototype.getUTCMonth.length !== 0) { - $ERROR('#2: The "length" property of the getUTCMonth is 0'); + throw new Test262Error('#2: The "length" property of the getUTCMonth is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T1.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T1.js index 942626f942..89eda92a05 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T1.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getUTCMonth.length; verifyNotWritable(Date.prototype.getUTCMonth, "length", null, 1); if (Date.prototype.getUTCMonth.length !== x) { - $ERROR('#1: The Date.prototype.getUTCMonth.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCMonth.length has the attribute ReadOnly'); } 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 b7ea5dc4f1..46dba24905 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getUTCMonth.length !== true) { - $ERROR('#1: The Date.prototype.getUTCMonth.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCMonth.length property does not have the attributes DontDelete'); } if (Date.prototype.getUTCMonth.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getUTCMonth.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 2518e6e6e3..da76a2f5a1 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getUTCMonth.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getUTCMonth.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCMonth.length property has the attribute DontEnum'); } for (var x in Date.prototype.getUTCMonth) { if (x === "length") { - $ERROR('#2: The Date.prototype.getUTCMonth.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getUTCMonth.length has the attribute DontEnum'); } } 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 f6933cc3b1..06ecdaa5a3 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.getUTCSeconds = 1; if (Date.prototype.getUTCSeconds === x) { - $ERROR('#1: The Date.prototype.getUTCSeconds has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCSeconds has not the attribute ReadOnly'); } 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 4c2cd00991..c9ae764149 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.getUTCSeconds === false) { - $ERROR('#1: The Date.prototype.getUTCSeconds property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCSeconds property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('getUTCSeconds')) { - $ERROR('#2: The Date.prototype.getUTCSeconds property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 016dc36712..2f20461b01 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('getUTCSeconds')) { - $ERROR('#1: The Date.prototype.getUTCSeconds property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCSeconds property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "getUTCSeconds") { - $ERROR('#2: The Date.prototype.getUTCSeconds has the attribute DontEnum'); + throw new Test262Error('#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 b1fd9cb383..6621971a4f 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,9 +8,9 @@ description: The "length" property of the "getUTCSeconds" is 0 ---*/ if (Date.prototype.getUTCSeconds.hasOwnProperty("length") !== true) { - $ERROR('#1: The getUTCSeconds has a "length" property'); + throw new Test262Error('#1: The getUTCSeconds has a "length" property'); } if (Date.prototype.getUTCSeconds.length !== 0) { - $ERROR('#2: The "length" property of the getUTCSeconds is 0'); + throw new Test262Error('#2: The "length" property of the getUTCSeconds is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T1.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T1.js index 543359fc49..70678cc1ae 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T1.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.getUTCSeconds.length; verifyNotWritable(Date.prototype.getUTCSeconds, "length", null, 1); if (Date.prototype.getUTCSeconds.length !== x) { - $ERROR('#1: The Date.prototype.getUTCSeconds.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.getUTCSeconds.length has the attribute ReadOnly'); } 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 67dfc2343d..ceba933d8a 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.getUTCSeconds.length !== true) { - $ERROR('#1: The Date.prototype.getUTCSeconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.getUTCSeconds.length property does not have the attributes DontDelete'); } if (Date.prototype.getUTCSeconds.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.getUTCSeconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 6d833b4290..309f2a0d75 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.getUTCSeconds.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.getUTCSeconds.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.getUTCSeconds.length property has the attribute DontEnum'); } for (var x in Date.prototype.getUTCSeconds) { if (x === "length") { - $ERROR('#2: The Date.prototype.getUTCSeconds.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.getUTCSeconds.length has the attribute DontEnum'); } } 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 be971a26af..f4f689ecef 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setDate = 1; if (Date.prototype.setDate === x) { - $ERROR('#1: The Date.prototype.setDate has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setDate has not the attribute ReadOnly'); } 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 8a10e21b87..c1f15646c0 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setDate === false) { - $ERROR('#1: The Date.prototype.setDate property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setDate property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setDate')) { - $ERROR('#2: The Date.prototype.setDate property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 ced56ef8be..801f4fad49 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setDate')) { - $ERROR('#1: The Date.prototype.setDate property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setDate property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setDate") { - $ERROR('#2: The Date.prototype.setDate has the attribute DontEnum'); + throw new Test262Error('#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 dff21010b4..4317b8435c 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,9 +8,9 @@ description: The "length" property of the "setDate" is 1 ---*/ if (Date.prototype.setDate.hasOwnProperty("length") !== true) { - $ERROR('#1: The setDate has a "length" property'); + throw new Test262Error('#1: The setDate has a "length" property'); } if (Date.prototype.setDate.length !== 1) { - $ERROR('#2: The "length" property of the setDate is 1'); + throw new Test262Error('#2: The "length" property of the setDate is 1'); } diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T1.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T1.js index 111211ae5d..5584aca6c1 100644 --- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T1.js +++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setDate.length; verifyNotWritable(Date.prototype.setDate, "length", null, 1); if (Date.prototype.setDate.length !== x) { - $ERROR('#1: The Date.prototype.setDate.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setDate.length has the attribute ReadOnly'); } 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 2006e8f389..45a0a53a53 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setDate.length !== true) { - $ERROR('#1: The Date.prototype.setDate.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setDate.length property does not have the attributes DontDelete'); } if (Date.prototype.setDate.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setDate.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 c1fb9bf2f4..95f88a86ef 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setDate.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setDate.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setDate.length property has the attribute DontEnum'); } for (var x in Date.prototype.setDate) { if (x === "length") { - $ERROR('#2: The Date.prototype.setDate.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.setDate.length has the attribute DontEnum'); } } 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 8e53e263f5..4c62a0604a 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setFullYear = 1; if (Date.prototype.setFullYear === x) { - $ERROR('#1: The Date.prototype.setFullYear has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setFullYear has not the attribute ReadOnly'); } 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 d526ef3558..31d9bd4d37 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setFullYear === false) { - $ERROR('#1: The Date.prototype.setFullYear property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setFullYear property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setFullYear')) { - $ERROR('#2: The Date.prototype.setFullYear property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 7a52842dd2..6af69b5f60 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setFullYear')) { - $ERROR('#1: The Date.prototype.setFullYear property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setFullYear property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setFullYear") { - $ERROR('#2: The Date.prototype.setFullYear has the attribute DontEnum'); + throw new Test262Error('#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 71a898f72b..9d33920680 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,9 +8,9 @@ description: The "length" property of the "setFullYear" is 3 ---*/ if (Date.prototype.setFullYear.hasOwnProperty("length") !== true) { - $ERROR('#1: The setFullYear has a "length" property'); + throw new Test262Error('#1: The setFullYear has a "length" property'); } if (Date.prototype.setFullYear.length !== 3) { - $ERROR('#2: The "length" property of the setFullYear is 3'); + throw new Test262Error('#2: The "length" property of the setFullYear is 3'); } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T1.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T1.js index e1621fcf1f..9f908b9932 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T1.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setFullYear.length; verifyNotWritable(Date.prototype.setFullYear, "length", null, 1); if (Date.prototype.setFullYear.length !== x) { - $ERROR('#1: The Date.prototype.setFullYear.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setFullYear.length has the attribute ReadOnly'); } 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 8dab01a01b..7495e2e613 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setFullYear.length !== true) { - $ERROR('#1: The Date.prototype.setFullYear.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setFullYear.length property does not have the attributes DontDelete'); } if (Date.prototype.setFullYear.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setFullYear.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 6c6eadadf8..1cb256f48c 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setFullYear.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setFullYear.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setFullYear.length property has the attribute DontEnum'); } for (var x in Date.prototype.setFullYear) { if (x === "length") { - $ERROR('#2: The Date.prototype.setFullYear.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.setFullYear.length has the attribute DontEnum'); } } 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 06f32576a6..f61d497afa 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setHours = 1; if (Date.prototype.setHours === x) { - $ERROR('#1: The Date.prototype.setHours has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setHours has not the attribute ReadOnly'); } 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 01876a0944..a047afcce3 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setHours === false) { - $ERROR('#1: The Date.prototype.setHours property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setHours property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setHours')) { - $ERROR('#2: The Date.prototype.setHours property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 3cc648296f..9257300d3d 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setHours')) { - $ERROR('#1: The Date.prototype.setHours property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setHours property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setHours") { - $ERROR('#2: The Date.prototype.setHours has the attribute DontEnum'); + throw new Test262Error('#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 5b01685b51..f614d321b7 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,9 +8,9 @@ description: The "length" property of the "setHours" is 4 ---*/ if (Date.prototype.setHours.hasOwnProperty("length") !== true) { - $ERROR('#1: The setHours has a "length" property'); + throw new Test262Error('#1: The setHours has a "length" property'); } if (Date.prototype.setHours.length !== 4) { - $ERROR('#2: The "length" property of the setHours is 4'); + throw new Test262Error('#2: The "length" property of the setHours is 4'); } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T1.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T1.js index 5c31a437eb..a497613925 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T1.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setHours.length; verifyNotWritable(Date.prototype.setHours, "length", null, 1); if (Date.prototype.setHours.length !== x) { - $ERROR('#1: The Date.prototype.setHours.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setHours.length has the attribute ReadOnly'); } 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 69378fa134..ca3aaff1d6 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setHours.length !== true) { - $ERROR('#1: The Date.prototype.setHours.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setHours.length property does not have the attributes DontDelete'); } if (Date.prototype.setHours.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setHours.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 86de2a76be..842e6c5463 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setHours.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setHours.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setHours.length property has the attribute DontEnum'); } for (var x in Date.prototype.setHours) { if (x === "length") { - $ERROR('#2: The Date.prototype.setHours.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.setHours.length has the attribute DontEnum'); } } 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 20bb05d710..4c96a98b2c 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setMilliseconds = 1; if (Date.prototype.setMilliseconds === x) { - $ERROR('#1: The Date.prototype.setMilliseconds has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setMilliseconds has not the attribute ReadOnly'); } 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 c3a028fb2d..4eadf0a229 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setMilliseconds === false) { - $ERROR('#1: The Date.prototype.setMilliseconds property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setMilliseconds property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setMilliseconds')) { - $ERROR('#2: The Date.prototype.setMilliseconds property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 c53c2532bd..8498df0401 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setMilliseconds')) { - $ERROR('#1: The Date.prototype.setMilliseconds property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setMilliseconds property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setMilliseconds") { - $ERROR('#2: The Date.prototype.setMilliseconds has the attribute DontEnum'); + throw new Test262Error('#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 fa51cd489c..df2078994b 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,9 +8,9 @@ description: The "length" property of the "setMilliseconds" is 1 ---*/ if (Date.prototype.setMilliseconds.hasOwnProperty("length") !== true) { - $ERROR('#1: The setMilliseconds has a "length" property'); + throw new Test262Error('#1: The setMilliseconds has a "length" property'); } if (Date.prototype.setMilliseconds.length !== 1) { - $ERROR('#2: The "length" property of the setMilliseconds is 1'); + throw new Test262Error('#2: The "length" property of the setMilliseconds is 1'); } diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T1.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T1.js index ddb14aae6b..f63cf2b0ab 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T1.js +++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setMilliseconds.length; verifyNotWritable(Date.prototype.setMilliseconds, "length", null, 1); if (Date.prototype.setMilliseconds.length !== x) { - $ERROR('#1: The Date.prototype.setMilliseconds.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setMilliseconds.length has the attribute ReadOnly'); } 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 0646e6dcee..492432ca4e 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setMilliseconds.length !== true) { - $ERROR('#1: The Date.prototype.setMilliseconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setMilliseconds.length property does not have the attributes DontDelete'); } if (Date.prototype.setMilliseconds.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setMilliseconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 72124484a0..86f682478a 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setMilliseconds.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setMilliseconds.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setMilliseconds.length property has the attribute DontEnum'); } for (var x in Date.prototype.setMilliseconds) { if (x === "length") { - $ERROR('#2: The Date.prototype.setMilliseconds.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.setMilliseconds.length has the attribute DontEnum'); } } 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 12f2e012bb..d109b97b9a 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setMinutes = 1; if (Date.prototype.setMinutes === x) { - $ERROR('#1: The Date.prototype.setMinutes has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setMinutes has not the attribute ReadOnly'); } 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 e4280427f6..73d40b1d10 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setMinutes === false) { - $ERROR('#1: The Date.prototype.setMinutes property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setMinutes property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setMinutes')) { - $ERROR('#2: The Date.prototype.setMinutes property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 0bc29a9775..6f2f1e6794 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setMinutes')) { - $ERROR('#1: The Date.prototype.setMinutes property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setMinutes property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setMinutes") { - $ERROR('#2: The Date.prototype.setMinutes has the attribute DontEnum'); + throw new Test262Error('#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 1f99ec7f01..16a9565c17 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,9 +8,9 @@ description: The "length" property of the "setMinutes" is 3 ---*/ if (Date.prototype.setMinutes.hasOwnProperty("length") !== true) { - $ERROR('#1: The setMinutes has a "length" property'); + throw new Test262Error('#1: The setMinutes has a "length" property'); } if (Date.prototype.setMinutes.length !== 3) { - $ERROR('#2: The "length" property of the setMinutes is 3'); + throw new Test262Error('#2: The "length" property of the setMinutes is 3'); } diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T1.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T1.js index f3f4ea4f06..e0a9de92d6 100644 --- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T1.js +++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setMinutes.length; verifyNotWritable(Date.prototype.setMinutes, "length", null, 1); if (Date.prototype.setMinutes.length !== x) { - $ERROR('#1: The Date.prototype.setMinutes.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setMinutes.length has the attribute ReadOnly'); } 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 746111fec3..6d08cdf16b 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setMinutes.length !== true) { - $ERROR('#1: The Date.prototype.setMinutes.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setMinutes.length property does not have the attributes DontDelete'); } if (Date.prototype.setMinutes.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setMinutes.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 1f32ecff8f..cb8cfda760 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setMinutes.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setMinutes.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setMinutes.length property has the attribute DontEnum'); } for (var x in Date.prototype.setMinutes) { if (x === "length") { - $ERROR('#2: The Date.prototype.setMinutes.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.setMinutes.length has the attribute DontEnum'); } } 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 c35b997f87..9b86fcd31a 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setMonth = 1; if (Date.prototype.setMonth === x) { - $ERROR('#1: The Date.prototype.setMonth has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setMonth has not the attribute ReadOnly'); } 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 3b2f394345..8e0b9ce5c6 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setMonth === false) { - $ERROR('#1: The Date.prototype.setMonth property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setMonth property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setMonth')) { - $ERROR('#2: The Date.prototype.setMonth property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 9def6a62d3..b7f3e6a561 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setMonth')) { - $ERROR('#1: The Date.prototype.setMonth property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setMonth property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setMonth") { - $ERROR('#2: The Date.prototype.setMonth has the attribute DontEnum'); + throw new Test262Error('#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 e7e7c7e981..85ba9342e4 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,9 +8,9 @@ description: The "length" property of the "setMonth" is 2 ---*/ if (Date.prototype.setMonth.hasOwnProperty("length") !== true) { - $ERROR('#1: The setMonth has a "length" property'); + throw new Test262Error('#1: The setMonth has a "length" property'); } if (Date.prototype.setMonth.length !== 2) { - $ERROR('#2: The "length" property of the setMonth is 2'); + throw new Test262Error('#2: The "length" property of the setMonth is 2'); } diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T1.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T1.js index 9e7910f8e6..6d3531ecaf 100644 --- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T1.js +++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setMonth.length; verifyNotWritable(Date.prototype.setMonth, "length", null, 1); if (Date.prototype.setMonth.length !== x) { - $ERROR('#1: The Date.prototype.setMonth.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setMonth.length has the attribute ReadOnly'); } 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 6d23c5a54e..2d7491c7cb 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setMonth.length !== true) { - $ERROR('#1: The Date.prototype.setMonth.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setMonth.length property does not have the attributes DontDelete'); } if (Date.prototype.setMonth.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setMonth.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 00d506bb73..df6bfb21a1 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setMonth.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setMonth.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setMonth.length property has the attribute DontEnum'); } for (var x in Date.prototype.setMonth) { if (x === "length") { - $ERROR('#2: The Date.prototype.setMonth.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.setMonth.length has the attribute DontEnum'); } } 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 76ec0c0db9..c997b41864 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setSeconds = 1; if (Date.prototype.setSeconds === x) { - $ERROR('#1: The Date.prototype.setSeconds has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setSeconds has not the attribute ReadOnly'); } 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 d79978abe3..d09f335fd9 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setSeconds === false) { - $ERROR('#1: The Date.prototype.setSeconds property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setSeconds property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setSeconds')) { - $ERROR('#2: The Date.prototype.setSeconds property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 8023a08199..7a6a890997 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setSeconds')) { - $ERROR('#1: The Date.prototype.setSeconds property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setSeconds property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setSeconds") { - $ERROR('#2: The Date.prototype.setSeconds has the attribute DontEnum'); + throw new Test262Error('#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 97724d7ef3..61d0ad6ced 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,9 +8,9 @@ description: The "length" property of the "setSeconds" is 2 ---*/ if (Date.prototype.setSeconds.hasOwnProperty("length") !== true) { - $ERROR('#1: The setSeconds has a "length" property'); + throw new Test262Error('#1: The setSeconds has a "length" property'); } if (Date.prototype.setSeconds.length !== 2) { - $ERROR('#2: The "length" property of the setSeconds is 2'); + throw new Test262Error('#2: The "length" property of the setSeconds is 2'); } diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T1.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T1.js index 4d994c9636..8d5612e9e8 100644 --- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T1.js +++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setSeconds.length; verifyNotWritable(Date.prototype.setSeconds, "length", null, 1); if (Date.prototype.setSeconds.length !== x) { - $ERROR('#1: The Date.prototype.setSeconds.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setSeconds.length has the attribute ReadOnly'); } 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 76fe46aa8e..4814876289 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setSeconds.length !== true) { - $ERROR('#1: The Date.prototype.setSeconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setSeconds.length property does not have the attributes DontDelete'); } if (Date.prototype.setSeconds.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setSeconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 be9a1ecfe0..bfa1d7d759 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setSeconds.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setSeconds.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setSeconds.length property has the attribute DontEnum'); } for (var x in Date.prototype.setSeconds) { if (x === "length") { - $ERROR('#2: The Date.prototype.setSeconds.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.setSeconds.length has the attribute DontEnum'); } } 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 5eca0786d5..caecd702dd 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setTime = 1; if (Date.prototype.setTime === x) { - $ERROR('#1: The Date.prototype.setTime has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setTime has not the attribute ReadOnly'); } 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 0efc5c9304..43e8990e7c 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setTime === false) { - $ERROR('#1: The Date.prototype.setTime property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setTime property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setTime')) { - $ERROR('#2: The Date.prototype.setTime property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 039e557577..7096379434 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setTime')) { - $ERROR('#1: The Date.prototype.setTime property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setTime property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setTime") { - $ERROR('#2: The Date.prototype.setTime has the attribute DontEnum'); + throw new Test262Error('#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 42329cbb45..2cedb5df09 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,9 +8,9 @@ description: The "length" property of the "setTime" is 1 ---*/ if (Date.prototype.setTime.hasOwnProperty("length") !== true) { - $ERROR('#1: The setTime has a "length" property'); + throw new Test262Error('#1: The setTime has a "length" property'); } if (Date.prototype.setTime.length !== 1) { - $ERROR('#2: The "length" property of the setTime is 1'); + throw new Test262Error('#2: The "length" property of the setTime is 1'); } diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T1.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T1.js index ede6e8f930..e7fe6c56c1 100644 --- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T1.js +++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setTime.length; verifyNotWritable(Date.prototype.setTime, "length", null, 1); if (Date.prototype.setTime.length !== x) { - $ERROR('#1: The Date.prototype.setTime.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setTime.length has the attribute ReadOnly'); } 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 3676d0d171..229431c527 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setTime.length !== true) { - $ERROR('#1: The Date.prototype.setTime.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setTime.length property does not have the attributes DontDelete'); } if (Date.prototype.setTime.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setTime.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 ee35158cf9..b1cb8bd292 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setTime.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setTime.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setTime.length property has the attribute DontEnum'); } for (var x in Date.prototype.setTime) { if (x === "length") { - $ERROR('#2: The Date.prototype.setTime.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.setTime.length has the attribute DontEnum'); } } 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 8525b8145f..8569df821c 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setUTCDate = 1; if (Date.prototype.setUTCDate === x) { - $ERROR('#1: The Date.prototype.setUTCDate has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCDate has not the attribute ReadOnly'); } 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 e16425838f..a60eb1a69f 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setUTCDate === false) { - $ERROR('#1: The Date.prototype.setUTCDate property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCDate property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setUTCDate')) { - $ERROR('#2: The Date.prototype.setUTCDate property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 f946a01df3..66417aa2a8 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setUTCDate')) { - $ERROR('#1: The Date.prototype.setUTCDate property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCDate property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setUTCDate") { - $ERROR('#2: The Date.prototype.setUTCDate has the attribute DontEnum'); + throw new Test262Error('#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 5a222fe2cb..438e79f8c2 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,9 +8,9 @@ description: The "length" property of the "setUTCDate" is 1 ---*/ if (Date.prototype.setUTCDate.hasOwnProperty("length") !== true) { - $ERROR('#1: The setUTCDate has a "length" property'); + throw new Test262Error('#1: The setUTCDate has a "length" property'); } if (Date.prototype.setUTCDate.length !== 1) { - $ERROR('#2: The "length" property of the setUTCDate is 1'); + throw new Test262Error('#2: The "length" property of the setUTCDate is 1'); } diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T1.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T1.js index 77b2863178..4840d549c4 100644 --- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T1.js +++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setUTCDate.length; verifyNotWritable(Date.prototype.setUTCDate, "length", null, 1); if (Date.prototype.setUTCDate.length !== x) { - $ERROR('#1: The Date.prototype.setUTCDate.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCDate.length has the attribute ReadOnly'); } 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 e9dc6a04e8..8a4ce2c5f9 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setUTCDate.length !== true) { - $ERROR('#1: The Date.prototype.setUTCDate.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCDate.length property does not have the attributes DontDelete'); } if (Date.prototype.setUTCDate.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setUTCDate.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 f9185c0e45..5612e9b05d 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setUTCDate.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setUTCDate.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCDate.length property has the attribute DontEnum'); } for (var x in Date.prototype.setUTCDate) { if (x === "length") { - $ERROR('#2: The Date.prototype.setUTCDate.length has the attribute DontEnum'); + throw new Test262Error('#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 ecd2cdb46c..90d37b7928 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setUTCFullYear = 1; if (Date.prototype.setUTCFullYear === x) { - $ERROR('#1: The Date.prototype.setUTCFullYear has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCFullYear has not the attribute ReadOnly'); } 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 b139aa3060..8e67d0644d 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setUTCFullYear === false) { - $ERROR('#1: The Date.prototype.setUTCFullYear property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCFullYear property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setUTCFullYear')) { - $ERROR('#2: The Date.prototype.setUTCFullYear property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 39094d72fc..a18583be07 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setUTCFullYear')) { - $ERROR('#1: The Date.prototype.setUTCFullYear property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCFullYear property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setUTCFullYear") { - $ERROR('#2: The Date.prototype.setUTCFullYear has the attribute DontEnum'); + throw new Test262Error('#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 9c5a768a9a..4a7fa5995b 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,9 +8,9 @@ description: The "length" property of the "setUTCFullYear" is 3 ---*/ if (Date.prototype.setUTCFullYear.hasOwnProperty("length") !== true) { - $ERROR('#1: The setUTCFullYear has a "length" property'); + throw new Test262Error('#1: The setUTCFullYear has a "length" property'); } if (Date.prototype.setUTCFullYear.length !== 3) { - $ERROR('#2: The "length" property of the setUTCFullYear is 3'); + throw new Test262Error('#2: The "length" property of the setUTCFullYear is 3'); } diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T1.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T1.js index 104458f71b..a972caba74 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T1.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setUTCFullYear.length; verifyNotWritable(Date.prototype.setUTCFullYear, "length", null, 1); if (Date.prototype.setUTCFullYear.length !== x) { - $ERROR('#1: The Date.prototype.setUTCFullYear.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCFullYear.length has the attribute ReadOnly'); } 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 bb458af23f..d56b1b74e0 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setUTCFullYear.length !== true) { - $ERROR('#1: The Date.prototype.setUTCFullYear.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCFullYear.length property does not have the attributes DontDelete'); } if (Date.prototype.setUTCFullYear.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setUTCFullYear.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 543ec142bf..ee06949e9f 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setUTCFullYear.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setUTCFullYear.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCFullYear.length property has the attribute DontEnum'); } for (var x in Date.prototype.setUTCFullYear) { if (x === "length") { - $ERROR('#2: The Date.prototype.setUTCFullYear.length has the attribute DontEnum'); + throw new Test262Error('#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 ca072b6fdd..23c2a4d78a 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setUTCHours = 1; if (Date.prototype.setUTCHours === x) { - $ERROR('#1: The Date.prototype.setUTCHours has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCHours has not the attribute ReadOnly'); } 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 127e7853b9..7883defe39 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setUTCHours === false) { - $ERROR('#1: The Date.prototype.setUTCHours property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCHours property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setUTCHours')) { - $ERROR('#2: The Date.prototype.setUTCHours property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 f899ebc3d0..d90f1af182 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setUTCHours')) { - $ERROR('#1: The Date.prototype.setUTCHours property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCHours property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setUTCHours") { - $ERROR('#2: The Date.prototype.setUTCHours has the attribute DontEnum'); + throw new Test262Error('#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 8e21747b51..e5c70aa247 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,9 +8,9 @@ description: The "length" property of the "setUTCHours" is 4 ---*/ if (Date.prototype.setUTCHours.hasOwnProperty("length") !== true) { - $ERROR('#1: The setUTCHours has a "length" property'); + throw new Test262Error('#1: The setUTCHours has a "length" property'); } if (Date.prototype.setUTCHours.length !== 4) { - $ERROR('#2: The "length" property of the setUTCHours is 4'); + throw new Test262Error('#2: The "length" property of the setUTCHours is 4'); } diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T1.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T1.js index 03c657d818..4680c7946d 100644 --- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T1.js +++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setUTCHours.length; verifyNotWritable(Date.prototype.setUTCHours, "length", null, 1); if (Date.prototype.setUTCHours.length !== x) { - $ERROR('#1: The Date.prototype.setUTCHours.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCHours.length has the attribute ReadOnly'); } 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 0b88aee1e5..949229d015 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setUTCHours.length !== true) { - $ERROR('#1: The Date.prototype.setUTCHours.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCHours.length property does not have the attributes DontDelete'); } if (Date.prototype.setUTCHours.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setUTCHours.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 ce514af0f7..df22eef9cb 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setUTCHours.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setUTCHours.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCHours.length property has the attribute DontEnum'); } for (var x in Date.prototype.setUTCHours) { if (x === "length") { - $ERROR('#2: The Date.prototype.setUTCHours.length has the attribute DontEnum'); + throw new Test262Error('#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 a3607899f5..ff508d3d0e 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 @@ -15,5 +15,5 @@ if (x === 1) else Date.prototype.setUTCMilliseconds = 1; if (Date.prototype.setUTCMilliseconds === x) { - $ERROR('#1: The Date.prototype.setUTCMilliseconds has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCMilliseconds has not the attribute ReadOnly'); } 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 551092fd05..57c203f0c0 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,9 +10,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setUTCMilliseconds === false) { - $ERROR('#1: The Date.prototype.setUTCMilliseconds property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCMilliseconds property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setUTCMilliseconds')) { - $ERROR('#2: The Date.prototype.setUTCMilliseconds property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 bff5f0d94a..6aa1acff58 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setUTCMilliseconds')) { - $ERROR('#1: The Date.prototype.setUTCMilliseconds property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCMilliseconds property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setUTCMilliseconds") { - $ERROR('#2: The Date.prototype.setUTCMilliseconds has the attribute DontEnum'); + throw new Test262Error('#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 6297167d85..df1d17e4be 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,9 +8,9 @@ description: The "length" property of the "setUTCMilliseconds" is 1 ---*/ if (Date.prototype.setUTCMilliseconds.hasOwnProperty("length") !== true) { - $ERROR('#1: The setUTCMilliseconds has a "length" property'); + throw new Test262Error('#1: The setUTCMilliseconds has a "length" property'); } if (Date.prototype.setUTCMilliseconds.length !== 1) { - $ERROR('#2: The "length" property of the setUTCMilliseconds is 1'); + throw new Test262Error('#2: The "length" property of the setUTCMilliseconds is 1'); } diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T1.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T1.js index 86f1e8e703..3b1a74b201 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T1.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setUTCMilliseconds.length; verifyNotWritable(Date.prototype.setUTCMilliseconds, "length", null, 1); if (Date.prototype.setUTCMilliseconds.length !== x) { - $ERROR('#1: The Date.prototype.setUTCMilliseconds.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCMilliseconds.length has the attribute ReadOnly'); } 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 e27a373cef..4572fa195e 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setUTCMilliseconds.length !== true) { - $ERROR('#1: The Date.prototype.setUTCMilliseconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCMilliseconds.length property does not have the attributes DontDelete'); } if (Date.prototype.setUTCMilliseconds.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setUTCMilliseconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 5f6b68142d..68f9561589 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setUTCMilliseconds.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setUTCMilliseconds.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCMilliseconds.length property has the attribute DontEnum'); } for (var x in Date.prototype.setUTCMilliseconds) { if (x === "length") { - $ERROR('#2: The Date.prototype.setUTCMilliseconds.length has the attribute DontEnum'); + throw new Test262Error('#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 62e0e82f2f..08e1238bb9 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setUTCMinutes = 1; if (Date.prototype.setUTCMinutes === x) { - $ERROR('#1: The Date.prototype.setUTCMinutes has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCMinutes has not the attribute ReadOnly'); } 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 1bec17bf3c..d61754c607 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setUTCMinutes === false) { - $ERROR('#1: The Date.prototype.setUTCMinutes property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCMinutes property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setUTCMinutes')) { - $ERROR('#2: The Date.prototype.setUTCMinutes property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 05e807e989..73dcfb0bad 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setUTCMinutes')) { - $ERROR('#1: The Date.prototype.setUTCMinutes property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCMinutes property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setUTCMinutes") { - $ERROR('#2: The Date.prototype.setUTCMinutes has the attribute DontEnum'); + throw new Test262Error('#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 5cbf82d946..754218ae53 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,9 +8,9 @@ description: The "length" property of the "setUTCMinutes" is 3 ---*/ if (Date.prototype.setUTCMinutes.hasOwnProperty("length") !== true) { - $ERROR('#1: The setUTCMinutes has a "length" property'); + throw new Test262Error('#1: The setUTCMinutes has a "length" property'); } if (Date.prototype.setUTCMinutes.length !== 3) { - $ERROR('#2: The "length" property of the setUTCMinutes is 3'); + throw new Test262Error('#2: The "length" property of the setUTCMinutes is 3'); } diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T1.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T1.js index cdc21d80ff..c205aaa32d 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T1.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setUTCMinutes.length; verifyNotWritable(Date.prototype.setUTCMinutes, "length", null, 1); if (Date.prototype.setUTCMinutes.length !== x) { - $ERROR('#1: The Date.prototype.setUTCMinutes.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCMinutes.length has the attribute ReadOnly'); } 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 4da3c3475c..77c7571e54 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setUTCMinutes.length !== true) { - $ERROR('#1: The Date.prototype.setUTCMinutes.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCMinutes.length property does not have the attributes DontDelete'); } if (Date.prototype.setUTCMinutes.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setUTCMinutes.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 d4fe002d1f..c3c501fa7d 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setUTCMinutes.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setUTCMinutes.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCMinutes.length property has the attribute DontEnum'); } for (var x in Date.prototype.setUTCMinutes) { if (x === "length") { - $ERROR('#2: The Date.prototype.setUTCMinutes.length has the attribute DontEnum'); + throw new Test262Error('#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 3267cff2d1..cab40a54b1 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setUTCMonth = 1; if (Date.prototype.setUTCMonth === x) { - $ERROR('#1: The Date.prototype.setUTCMonth has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCMonth has not the attribute ReadOnly'); } 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 0a5545bba2..2aa28e00e8 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setUTCMonth === false) { - $ERROR('#1: The Date.prototype.setUTCMonth property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCMonth property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setUTCMonth')) { - $ERROR('#2: The Date.prototype.setUTCMonth property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 d419d97e07..8c89603938 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setUTCMonth')) { - $ERROR('#1: The Date.prototype.setUTCMonth property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCMonth property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setUTCMonth") { - $ERROR('#2: The Date.prototype.setUTCMonth has the attribute DontEnum'); + throw new Test262Error('#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 81802c7474..0b52441a9e 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,9 +8,9 @@ description: The "length" property of the "setUTCMonth" is 2 ---*/ if (Date.prototype.setUTCMonth.hasOwnProperty("length") !== true) { - $ERROR('#1: The setUTCMonth has a "length" property'); + throw new Test262Error('#1: The setUTCMonth has a "length" property'); } if (Date.prototype.setUTCMonth.length !== 2) { - $ERROR('#2: The "length" property of the setUTCMonth is 2'); + throw new Test262Error('#2: The "length" property of the setUTCMonth is 2'); } diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T1.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T1.js index 20885c07bc..fb523b42ea 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T1.js +++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setUTCMonth.length; verifyNotWritable(Date.prototype.setUTCMonth, "length", null, 1); if (Date.prototype.setUTCMonth.length !== x) { - $ERROR('#1: The Date.prototype.setUTCMonth.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCMonth.length has the attribute ReadOnly'); } 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 78a0dd4d16..7cacfb103b 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setUTCMonth.length !== true) { - $ERROR('#1: The Date.prototype.setUTCMonth.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCMonth.length property does not have the attributes DontDelete'); } if (Date.prototype.setUTCMonth.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setUTCMonth.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 f3b6bee195..d70057fe77 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setUTCMonth.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setUTCMonth.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCMonth.length property has the attribute DontEnum'); } for (var x in Date.prototype.setUTCMonth) { if (x === "length") { - $ERROR('#2: The Date.prototype.setUTCMonth.length has the attribute DontEnum'); + throw new Test262Error('#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 e5b297eb95..8d042faa5a 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.setUTCSeconds = 1; if (Date.prototype.setUTCSeconds === x) { - $ERROR('#1: The Date.prototype.setUTCSeconds has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCSeconds has not the attribute ReadOnly'); } 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 a51814ca0d..d0d3c746cc 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.setUTCSeconds === false) { - $ERROR('#1: The Date.prototype.setUTCSeconds property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCSeconds property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('setUTCSeconds')) { - $ERROR('#2: The Date.prototype.setUTCSeconds property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 531a529a36..c987c7806d 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('setUTCSeconds')) { - $ERROR('#1: The Date.prototype.setUTCSeconds property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCSeconds property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "setUTCSeconds") { - $ERROR('#2: The Date.prototype.setUTCSeconds has the attribute DontEnum'); + throw new Test262Error('#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 205720392b..b9ae026560 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,9 +8,9 @@ description: The "length" property of the "setUTCSeconds" is 2 ---*/ if (Date.prototype.setUTCSeconds.hasOwnProperty("length") !== true) { - $ERROR('#1: The setUTCSeconds has a "length" property'); + throw new Test262Error('#1: The setUTCSeconds has a "length" property'); } if (Date.prototype.setUTCSeconds.length !== 2) { - $ERROR('#2: The "length" property of the setUTCSeconds is 2'); + throw new Test262Error('#2: The "length" property of the setUTCSeconds is 2'); } diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T1.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T1.js index bdfb9efc4d..a77ad4060b 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T1.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.setUTCSeconds.length; verifyNotWritable(Date.prototype.setUTCSeconds, "length", null, 1); if (Date.prototype.setUTCSeconds.length !== x) { - $ERROR('#1: The Date.prototype.setUTCSeconds.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.setUTCSeconds.length has the attribute ReadOnly'); } 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 a9843118b8..809d730bf3 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.setUTCSeconds.length !== true) { - $ERROR('#1: The Date.prototype.setUTCSeconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.setUTCSeconds.length property does not have the attributes DontDelete'); } if (Date.prototype.setUTCSeconds.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.setUTCSeconds.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 891c1f4550..e0ae3592eb 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.setUTCSeconds.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.setUTCSeconds.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.setUTCSeconds.length property has the attribute DontEnum'); } for (var x in Date.prototype.setUTCSeconds) { if (x === "length") { - $ERROR('#2: The Date.prototype.setUTCSeconds.length has the attribute DontEnum'); + throw new Test262Error('#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 95b4f8d145..a1843e949d 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.toDateString = 1; if (Date.prototype.toDateString === x) { - $ERROR('#1: The Date.prototype.toDateString has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toDateString has not the attribute ReadOnly'); } 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 f4fd028411..36741aa5f8 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.toDateString === false) { - $ERROR('#1: The Date.prototype.toDateString property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toDateString property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('toDateString')) { - $ERROR('#2: The Date.prototype.toDateString property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 3b7bdcf40d..dd2edcffb7 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('toDateString')) { - $ERROR('#1: The Date.prototype.toDateString property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toDateString property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "toDateString") { - $ERROR('#2: The Date.prototype.toDateString has the attribute DontEnum'); + throw new Test262Error('#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 1e92cd516d..0aeae31ab0 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,9 +8,9 @@ description: The "length" property of the "toDateString" is 0 ---*/ if (Date.prototype.toDateString.hasOwnProperty("length") !== true) { - $ERROR('#1: The toDateString has a "length" property'); + throw new Test262Error('#1: The toDateString has a "length" property'); } if (Date.prototype.toDateString.length !== 0) { - $ERROR('#2: The "length" property of the toDateString is 0'); + throw new Test262Error('#2: The "length" property of the toDateString is 0'); } diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T1.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T1.js index 692982b185..c4734330d5 100644 --- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T1.js +++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.toDateString.length; verifyNotWritable(Date.prototype.toDateString, "length", null, 1); if (Date.prototype.toDateString.length !== x) { - $ERROR('#1: The Date.prototype.toDateString.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toDateString.length has the attribute ReadOnly'); } 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 b2f07c0729..bf4db7b60f 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.toDateString.length !== true) { - $ERROR('#1: The Date.prototype.toDateString.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toDateString.length property does not have the attributes DontDelete'); } if (Date.prototype.toDateString.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.toDateString.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 ce5aae0c2c..acc9b2600e 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.toDateString.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.toDateString.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toDateString.length property has the attribute DontEnum'); } for (var x in Date.prototype.toDateString) { if (x === "length") { - $ERROR('#2: The Date.prototype.toDateString.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.toDateString.length has the attribute DontEnum'); } } 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 b7fcf0aad3..3b24f4b75b 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 @@ -15,5 +15,5 @@ if (x === 1) else Date.prototype.toLocaleDateString = 1; if (Date.prototype.toLocaleDateString === x) { - $ERROR('#1: The Date.prototype.toLocaleDateString has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toLocaleDateString has not the attribute ReadOnly'); } 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 b99003b0e0..e9f2705a84 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,9 +10,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.toLocaleDateString === false) { - $ERROR('#1: The Date.prototype.toLocaleDateString property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toLocaleDateString property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('toLocaleDateString')) { - $ERROR('#2: The Date.prototype.toLocaleDateString property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 b9b11d262c..8324138505 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('toLocaleDateString')) { - $ERROR('#1: The Date.prototype.toLocaleDateString property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toLocaleDateString property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "toLocaleDateString") { - $ERROR('#2: The Date.prototype.toLocaleDateString has the attribute DontEnum'); + throw new Test262Error('#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 24997421f6..b16d9886ed 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,9 +8,9 @@ description: The "length" property of the "toLocaleDateString" is 0 ---*/ if (Date.prototype.toLocaleDateString.hasOwnProperty("length") !== true) { - $ERROR('#1: The toLocaleDateString has a "length" property'); + throw new Test262Error('#1: The toLocaleDateString has a "length" property'); } if (Date.prototype.toLocaleDateString.length !== 0) { - $ERROR('#2: The "length" property of the toLocaleDateString is 0'); + throw new Test262Error('#2: The "length" property of the toLocaleDateString is 0'); } diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T1.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T1.js index 5f025e3f8f..784cddacee 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T1.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.toLocaleDateString.length; verifyNotWritable(Date.prototype.toLocaleDateString, "length", null, 1); if (Date.prototype.toLocaleDateString.length !== x) { - $ERROR('#1: The Date.prototype.toLocaleDateString.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toLocaleDateString.length has the attribute ReadOnly'); } 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 6628562198..7a8e232a42 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.toLocaleDateString.length !== true) { - $ERROR('#1: The Date.prototype.toLocaleDateString.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toLocaleDateString.length property does not have the attributes DontDelete'); } if (Date.prototype.toLocaleDateString.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.toLocaleDateString.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 8aa7a59986..bbbe61ec7a 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.toLocaleDateString.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.toLocaleDateString.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toLocaleDateString.length property has the attribute DontEnum'); } for (var x in Date.prototype.toLocaleDateString) { if (x === "length") { - $ERROR('#2: The Date.prototype.toLocaleDateString.length has the attribute DontEnum'); + throw new Test262Error('#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 050f166f5b..308edb12a4 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.toLocaleString = 1; if (Date.prototype.toLocaleString === x) { - $ERROR('#1: The Date.prototype.toLocaleString has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toLocaleString has not the attribute ReadOnly'); } 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 cc0b2c4a60..fbd2db8eb9 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.toLocaleString === false) { - $ERROR('#1: The Date.prototype.toLocaleString property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toLocaleString property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('toLocaleString')) { - $ERROR('#2: The Date.prototype.toLocaleString property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 d87f2cc462..327fc2cfdd 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('toLocaleString')) { - $ERROR('#1: The Date.prototype.toLocaleString property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toLocaleString property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "toLocaleString") { - $ERROR('#2: The Date.prototype.toLocaleString has the attribute DontEnum'); + throw new Test262Error('#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 67bdab0215..ea3c4a4616 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,9 +8,9 @@ description: The "length" property of the "toLocaleString" is 0 ---*/ if (Date.prototype.toLocaleString.hasOwnProperty("length") !== true) { - $ERROR('#1: The toLocaleString has a "length" property'); + throw new Test262Error('#1: The toLocaleString has a "length" property'); } if (Date.prototype.toLocaleString.length !== 0) { - $ERROR('#2: The "length" property of the toLocaleString is 0'); + throw new Test262Error('#2: The "length" property of the toLocaleString is 0'); } diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T1.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T1.js index 9259d65c2f..3a53c1ba44 100644 --- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T1.js +++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.toLocaleString.length; verifyNotWritable(Date.prototype.toLocaleString, "length", null, 1); if (Date.prototype.toLocaleString.length !== x) { - $ERROR('#1: The Date.prototype.toLocaleString.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toLocaleString.length has the attribute ReadOnly'); } 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 98f20901e2..a3419fb77f 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.toLocaleString.length !== true) { - $ERROR('#1: The Date.prototype.toLocaleString.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toLocaleString.length property does not have the attributes DontDelete'); } if (Date.prototype.toLocaleString.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.toLocaleString.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 82700b2719..fb39f2ded1 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.toLocaleString.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.toLocaleString.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toLocaleString.length property has the attribute DontEnum'); } for (var x in Date.prototype.toLocaleString) { if (x === "length") { - $ERROR('#2: The Date.prototype.toLocaleString.length has the attribute DontEnum'); + throw new Test262Error('#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 b5ac79c7a8..93e2062761 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 @@ -15,5 +15,5 @@ if (x === 1) else Date.prototype.toLocaleTimeString = 1; if (Date.prototype.toLocaleTimeString === x) { - $ERROR('#1: The Date.prototype.toLocaleTimeString has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toLocaleTimeString has not the attribute ReadOnly'); } 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 3347a73075..a6a8330659 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,9 +10,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.toLocaleTimeString === false) { - $ERROR('#1: The Date.prototype.toLocaleTimeString property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toLocaleTimeString property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('toLocaleTimeString')) { - $ERROR('#2: The Date.prototype.toLocaleTimeString property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 cc7d5f8e45..d23ae080e9 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('toLocaleTimeString')) { - $ERROR('#1: The Date.prototype.toLocaleTimeString property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toLocaleTimeString property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "toLocaleTimeString") { - $ERROR('#2: The Date.prototype.toLocaleTimeString has the attribute DontEnum'); + throw new Test262Error('#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 077417f6e3..4de2453e37 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,9 +8,9 @@ description: The "length" property of the "toLocaleTimeString" is 0 ---*/ if (Date.prototype.toLocaleTimeString.hasOwnProperty("length") !== true) { - $ERROR('#1: The toLocaleTimeString has a "length" property'); + throw new Test262Error('#1: The toLocaleTimeString has a "length" property'); } if (Date.prototype.toLocaleTimeString.length !== 0) { - $ERROR('#2: The "length" property of the toLocaleTimeString is 0'); + throw new Test262Error('#2: The "length" property of the toLocaleTimeString is 0'); } diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T1.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T1.js index 0e4b2022b1..20a10d0c62 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T1.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.toLocaleTimeString.length; verifyNotWritable(Date.prototype.toLocaleTimeString, "length", null, 1); if (Date.prototype.toLocaleTimeString.length !== x) { - $ERROR('#1: The Date.prototype.toLocaleTimeString.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toLocaleTimeString.length has the attribute ReadOnly'); } 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 aa07efbd83..87ce081b5e 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.toLocaleTimeString.length !== true) { - $ERROR('#1: The Date.prototype.toLocaleTimeString.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toLocaleTimeString.length property does not have the attributes DontDelete'); } if (Date.prototype.toLocaleTimeString.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.toLocaleTimeString.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 7259e6c8d4..baffc8285f 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.toLocaleTimeString.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.toLocaleTimeString.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toLocaleTimeString.length property has the attribute DontEnum'); } for (var x in Date.prototype.toLocaleTimeString) { if (x === "length") { - $ERROR('#2: The Date.prototype.toLocaleTimeString.length has the attribute DontEnum'); + throw new Test262Error('#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 fa1b16cdb0..b71921e13a 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.toString = 1; if (Date.prototype.toString === x) { - $ERROR('#1: The Date.prototype.toString has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toString has not the attribute ReadOnly'); } 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 af2b92301e..98f175d63a 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.toString === false) { - $ERROR('#1: The Date.prototype.toString property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toString property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('toString')) { - $ERROR('#2: The Date.prototype.toString property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 31967906d5..d5e15c30ff 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('toString')) { - $ERROR('#1: The Date.prototype.toString property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toString property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "toString") { - $ERROR('#2: The Date.prototype.toString has the attribute DontEnum'); + throw new Test262Error('#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 7f83dab5dd..0273806681 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,9 +8,9 @@ description: The "length" property of the "toString" is 0 ---*/ if (Date.prototype.toString.hasOwnProperty("length") !== true) { - $ERROR('#1: The toString has a "length" property'); + throw new Test262Error('#1: The toString has a "length" property'); } if (Date.prototype.toString.length !== 0) { - $ERROR('#2: The "length" property of the toString is 0'); + throw new Test262Error('#2: The "length" property of the toString is 0'); } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T1.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T1.js index d1df257782..4297788db8 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T1.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.toString.length; verifyNotWritable(Date.prototype.toString, "length", null, 1); if (Date.prototype.toString.length !== x) { - $ERROR('#1: The Date.prototype.toString.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toString.length has the attribute ReadOnly'); } 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 0551afa3d1..dd602cd447 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.toString.length !== true) { - $ERROR('#1: The Date.prototype.toString.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toString.length property does not have the attributes DontDelete'); } if (Date.prototype.toString.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.toString.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 aeecee5f9a..1d38aea0bb 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.toString.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.toString.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toString.length property has the attribute DontEnum'); } for (var x in Date.prototype.toString) { if (x === "length") { - $ERROR('#2: The Date.prototype.toString.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.toString.length has the attribute DontEnum'); } } 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 b922df5cd1..ded1a412ae 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.toTimeString = 1; if (Date.prototype.toTimeString === x) { - $ERROR('#1: The Date.prototype.toTimeString has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toTimeString has not the attribute ReadOnly'); } 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 535c5317c6..62a032af32 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.toTimeString === false) { - $ERROR('#1: The Date.prototype.toTimeString property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toTimeString property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('toTimeString')) { - $ERROR('#2: The Date.prototype.toTimeString property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 9e7dd4cdcd..17d5cd9018 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('toTimeString')) { - $ERROR('#1: The Date.prototype.toTimeString property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toTimeString property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "toTimeString") { - $ERROR('#2: The Date.prototype.toTimeString has the attribute DontEnum'); + throw new Test262Error('#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 48bdf2e44d..cb0beb19b1 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,9 +8,9 @@ description: The "length" property of the "toTimeString" is 0 ---*/ if (Date.prototype.toTimeString.hasOwnProperty("length") !== true) { - $ERROR('#1: The toTimeString has a "length" property'); + throw new Test262Error('#1: The toTimeString has a "length" property'); } if (Date.prototype.toTimeString.length !== 0) { - $ERROR('#2: The "length" property of the toTimeString is 0'); + throw new Test262Error('#2: The "length" property of the toTimeString is 0'); } diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T1.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T1.js index 722e801736..8a8728ac98 100644 --- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T1.js +++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.toTimeString.length; verifyNotWritable(Date.prototype.toTimeString, "length", null, 1); if (Date.prototype.toTimeString.length !== x) { - $ERROR('#1: The Date.prototype.toTimeString.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toTimeString.length has the attribute ReadOnly'); } 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 2d5b8a3756..780c8952b1 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.toTimeString.length !== true) { - $ERROR('#1: The Date.prototype.toTimeString.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toTimeString.length property does not have the attributes DontDelete'); } if (Date.prototype.toTimeString.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.toTimeString.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 fe4df026c7..a6343cee29 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.toTimeString.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.toTimeString.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toTimeString.length property has the attribute DontEnum'); } for (var x in Date.prototype.toTimeString) { if (x === "length") { - $ERROR('#2: The Date.prototype.toTimeString.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.toTimeString.length has the attribute DontEnum'); } } 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 4d709cf892..1591aada8d 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.toUTCString = 1; if (Date.prototype.toUTCString === x) { - $ERROR('#1: The Date.prototype.toUTCString has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toUTCString has not the attribute ReadOnly'); } 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 e235e162e9..6b1bdf2018 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.toUTCString === false) { - $ERROR('#1: The Date.prototype.toUTCString property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toUTCString property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('toUTCString')) { - $ERROR('#2: The Date.prototype.toUTCString property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 a9b1e4f898..b2fb058536 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('toUTCString')) { - $ERROR('#1: The Date.prototype.toUTCString property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toUTCString property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "toUTCString") { - $ERROR('#2: The Date.prototype.toUTCString has the attribute DontEnum'); + throw new Test262Error('#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 f0afe6253f..dabdc6f764 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,9 +8,9 @@ description: The "length" property of the "toUTCString" is 0 ---*/ if (Date.prototype.toUTCString.hasOwnProperty("length") !== true) { - $ERROR('#1: The toUTCString has a "length" property'); + throw new Test262Error('#1: The toUTCString has a "length" property'); } if (Date.prototype.toUTCString.length !== 0) { - $ERROR('#2: The "length" property of the toUTCString is 0'); + throw new Test262Error('#2: The "length" property of the toUTCString is 0'); } diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T1.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T1.js index 5c01cb9682..43b6da56e5 100644 --- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T1.js +++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.toUTCString.length; verifyNotWritable(Date.prototype.toUTCString, "length", null, 1); if (Date.prototype.toUTCString.length !== x) { - $ERROR('#1: The Date.prototype.toUTCString.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.toUTCString.length has the attribute ReadOnly'); } 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 38385869d2..001b8f3884 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.toUTCString.length !== true) { - $ERROR('#1: The Date.prototype.toUTCString.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.toUTCString.length property does not have the attributes DontDelete'); } if (Date.prototype.toUTCString.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.toUTCString.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 771520da0e..c615e3a405 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.toUTCString.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.toUTCString.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.toUTCString.length property has the attribute DontEnum'); } for (var x in Date.prototype.toUTCString) { if (x === "length") { - $ERROR('#2: The Date.prototype.toUTCString.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.toUTCString.length has the attribute DontEnum'); } } 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 4561bfae58..1aeed82b60 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 @@ -13,5 +13,5 @@ if (x === 1) else Date.prototype.valueOf = 1; if (Date.prototype.valueOf === x) { - $ERROR('#1: The Date.prototype.valueOf has not the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.valueOf has not the attribute ReadOnly'); } 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 611b44d10c..6b8eb45234 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,9 +8,9 @@ description: Checking absence of DontDelete attribute ---*/ if (delete Date.prototype.valueOf === false) { - $ERROR('#1: The Date.prototype.valueOf property has not the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.valueOf property has not the attributes DontDelete'); } if (Date.prototype.hasOwnProperty('valueOf')) { - $ERROR('#2: The Date.prototype.valueOf property has not the attributes DontDelete'); + throw new Test262Error('#2: 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 12d1aee5ed..93aedbf03f 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 @@ -8,11 +8,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.propertyIsEnumerable('valueOf')) { - $ERROR('#1: The Date.prototype.valueOf property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.valueOf property has the attribute DontEnum'); } for (var x in Date.prototype) { if (x === "valueOf") { - $ERROR('#2: The Date.prototype.valueOf has the attribute DontEnum'); + throw new Test262Error('#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 7748b107db..06fbe3fd3a 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,9 +8,9 @@ description: The "length" property of the "valueOf" is 0 ---*/ if (Date.prototype.valueOf.hasOwnProperty("length") !== true) { - $ERROR('#1: The valueOf has a "length" property'); + throw new Test262Error('#1: The valueOf has a "length" property'); } if (Date.prototype.valueOf.length !== 0) { - $ERROR('#2: The "length" property of the valueOf is 0'); + throw new Test262Error('#2: The "length" property of the valueOf is 0'); } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T1.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T1.js index f33fa3dbe0..6d757ca58b 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T1.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T1.js @@ -13,5 +13,5 @@ includes: [propertyHelper.js] var x = Date.prototype.valueOf.length; verifyNotWritable(Date.prototype.valueOf, "length", null, 1); if (Date.prototype.valueOf.length !== x) { - $ERROR('#1: The Date.prototype.valueOf.length has the attribute ReadOnly'); + throw new Test262Error('#1: The Date.prototype.valueOf.length has the attribute ReadOnly'); } 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 02e4834c54..fa38e1e978 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,9 +10,9 @@ description: Checking DontDelete attribute ---*/ if (delete Date.prototype.valueOf.length !== true) { - $ERROR('#1: The Date.prototype.valueOf.length property does not have the attributes DontDelete'); + throw new Test262Error('#1: The Date.prototype.valueOf.length property does not have the attributes DontDelete'); } if (Date.prototype.valueOf.hasOwnProperty('length')) { - $ERROR('#2: The Date.prototype.valueOf.length property does not have the attributes DontDelete'); + throw new Test262Error('#2: 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 6539872433..936b895171 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 @@ -10,11 +10,11 @@ description: Checking DontEnum attribute ---*/ if (Date.prototype.valueOf.propertyIsEnumerable('length')) { - $ERROR('#1: The Date.prototype.valueOf.length property has the attribute DontEnum'); + throw new Test262Error('#1: The Date.prototype.valueOf.length property has the attribute DontEnum'); } for (var x in Date.prototype.valueOf) { if (x === "length") { - $ERROR('#2: The Date.prototype.valueOf.length has the attribute DontEnum'); + throw new Test262Error('#2: The Date.prototype.valueOf.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/valueOf/S9.4_A3_T1.js b/test/built-ins/Date/prototype/valueOf/S9.4_A3_T1.js index 5140bb98dc..c4d97fb6b1 100644 --- a/test/built-ins/Date/prototype/valueOf/S9.4_A3_T1.js +++ b/test/built-ins/Date/prototype/valueOf/S9.4_A3_T1.js @@ -13,71 +13,71 @@ description: For testing constructor Date(Number) is used // CHECK#1 var d1 = new Date(6.54321); if (d1.valueOf() !== 6) { - $ERROR('#1: var d1 = new Date(6.54321); d1.valueOf() === 6;'); + throw new Test262Error('#1: var d1 = new Date(6.54321); d1.valueOf() === 6;'); } // CHECK#2 var d2 = new Date(-6.54321); if (d2.valueOf() !== -6) { - $ERROR('#2: var d2 = new Date(-6.54321); d2.valueOf() === -6;'); + throw new Test262Error('#2: var d2 = new Date(-6.54321); d2.valueOf() === -6;'); } // CHECK#3 var d3 = new Date(6.54321e2); if (d3.valueOf() !== 654) { - $ERROR('#3: var d3 = new Date(6.54321e2); d3.valueOf() === 654;'); + throw new Test262Error('#3: var d3 = new Date(6.54321e2); d3.valueOf() === 654;'); } // CHECK#4 var d4 = new Date(-6.54321e2); if (d4.valueOf() !== -654) { - $ERROR('#4: var d4 = new Date(-6.54321e2); d4.valueOf() === -654;'); + throw new Test262Error('#4: var d4 = new Date(-6.54321e2); d4.valueOf() === -654;'); } // CHECK#5 var d5 = new Date(0.654321e1); if (d5.valueOf() !== 6) { - $ERROR('#5: var d5 = new Date(0.654321e1); d5.valueOf() === 6;'); + throw new Test262Error('#5: var d5 = new Date(0.654321e1); d5.valueOf() === 6;'); } // CHECK#6 var d6 = new Date(-0.654321e1); if (d6.valueOf() !== -6) { - $ERROR('#6: var d6 = new Date(-0.654321e1); d6.valueOf() === -6;'); + throw new Test262Error('#6: var d6 = new Date(-0.654321e1); d6.valueOf() === -6;'); } // CHECK#7 var d7 = new Date(true); if (d7.valueOf() !== 1) { - $ERROR('#7: var d7 = new Date(true); d7.valueOf() === 1;'); + throw new Test262Error('#7: var d7 = new Date(true); d7.valueOf() === 1;'); } // CHECK#8 var d8 = new Date(false); if (d8.valueOf() !== 0) { - $ERROR('#8: var d8 = new Date(false); d8.valueOf() === 0;'); + throw new Test262Error('#8: var d8 = new Date(false); d8.valueOf() === 0;'); } // CHECK#9 var d9 = new Date(1.23e15); if (d9.valueOf() !== 1.23e15) { - $ERROR('#9: var d9 = new Date(1.23e15); d9.valueOf() === 1.23e15;'); + throw new Test262Error('#9: var d9 = new Date(1.23e15); d9.valueOf() === 1.23e15;'); } // CHECK#10 var d10 = new Date(-1.23e15); if (d10.valueOf() !== -1.23e15) { - $ERROR('#10: var d10 = new Date(-1.23e15); d10.valueOf() === -1.23e15;'); + throw new Test262Error('#10: var d10 = new Date(-1.23e15); d10.valueOf() === -1.23e15;'); } // CHECK#11 var d11 = new Date(1.23e-15); if (d11.valueOf() !== 0) { - $ERROR('#11: var d11 = new Date(1.23e-15); d11.valueOf() === 0;'); + throw new Test262Error('#11: var d11 = new Date(1.23e-15); d11.valueOf() === 0;'); } // CHECK#12 var d12 = new Date(-1.23e-15); if (d12.valueOf() !== -0) { - $ERROR('#12: var d12 = new Date(-1.23e-15); d12.valueOf() === -0;'); + throw new Test262Error('#12: var d12 = new Date(-1.23e-15); d12.valueOf() === -0;'); } diff --git a/test/built-ins/Date/prototype/valueOf/S9.4_A3_T2.js b/test/built-ins/Date/prototype/valueOf/S9.4_A3_T2.js index e9fe21eb63..d5e6c40099 100644 --- a/test/built-ins/Date/prototype/valueOf/S9.4_A3_T2.js +++ b/test/built-ins/Date/prototype/valueOf/S9.4_A3_T2.js @@ -27,11 +27,11 @@ assert.sameValue(d3.valueOf(), NaN, "-Infinity"); // CHECK#4 var d4 = new Date(0); if (d4.valueOf() !== 0) { - $ERROR('#4: var d4 = new Date(0); d4.valueOf() === 0;'); + throw new Test262Error('#4: var d4 = new Date(0); d4.valueOf() === 0;'); } // CHECK#5 var d5 = new Date(-0); if (d5.valueOf() !== -0) { - $ERROR('#5: var d5 = new Date(-0); d5.valueOf() === -0;'); + throw new Test262Error('#5: var d5 = new Date(-0); d5.valueOf() === -0;'); }