Skip to content

Enable Meziantou.Analyzer #812

Enable Meziantou.Analyzer

Enable Meziantou.Analyzer #812

Triggered via pull request November 12, 2023 13:23
Status Failure
Total duration 4m 24s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 errors
Date_parse("built-ins/Date/parse/time-value-maximum-range.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L8314
built-ins/Date/parse/time-value-maximum-range.js Jint.Runtime.JavaScriptException: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true ---> Error: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/parse/time-value-maximum-range.js:27:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 78 01: // Copyright (C) 2018 Andrew Paprocki. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-date.parse 06: description: > 07: Date.parse return value is limited to specified time value maximum range 08: info: | 09: Date.parse ( string ) 10: 11: parse interprets the resulting String as a date and time; it returns a 12: Number, the UTC time value corresponding to the date and time. 13: 14: A Date object contains a Number indicating a particular instant in time to 15: within a millisecond. Such a Number is called a time value. 16: 17: The actual range of times supported by ECMAScript Date objects is slightly 18: smaller: exactly -100,000,000 days to 100,000,000 days measured relative to 19: midnight at the beginning of 01 January, 1970 UTC. This gives a range of 20: 8,640,000,000,000,000 milliseconds to either side of 01 January, 1970 UTC. 21: ---*/ 22: 23: const minDateStr = "-271821-04-20T00:00:00.000Z"; 24: const minDate = new Date(-8640000000000000); 25: 26: assert.sameValue(minDate.toISOString(), minDateStr, "minDateStr"); 27: assert.sameValue(Date.parse(minDateStr), minDate.valueOf(), "parse minDateStr"); 28: 29: const maxDateStr = "+275760-09-13T00:00:00.000Z"; 30: const maxDate = new Date(8640000000000000); 31: 32: assert.sameValue(maxDate.toISOString(), maxDateStr, "maxDateStr"); 33: assert.sameValue(Date.parse(maxDateStr), maxDate.valueOf(), "parse maxDateStr"); 34: 35: const belowRange = "-271821-04-19T23:59:59.999Z"; 36: const aboveRange = "+275760-09-13T00:00:00.001Z"; 37: 38: assert.sameValue(Date.parse(belowRange), NaN, "parse below minimum time value"); 39: assert.sameValue(Date.parse(aboveRange), NaN, "parse above maximum time value"); 40:
Date_parse("built-ins/Date/parse/time-value-maximum-range.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L8314
built-ins/Date/parse/time-value-maximum-range.js Jint.Runtime.JavaScriptException: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true ---> Error: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/parse/time-value-maximum-range.js:28:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 78 01: "use strict"; 02: // Copyright (C) 2018 Andrew Paprocki. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-date.parse 07: description: > 08: Date.parse return value is limited to specified time value maximum range 09: info: | 10: Date.parse ( string ) 11: 12: parse interprets the resulting String as a date and time; it returns a 13: Number, the UTC time value corresponding to the date and time. 14: 15: A Date object contains a Number indicating a particular instant in time to 16: within a millisecond. Such a Number is called a time value. 17: 18: The actual range of times supported by ECMAScript Date objects is slightly 19: smaller: exactly -100,000,000 days to 100,000,000 days measured relative to 20: midnight at the beginning of 01 January, 1970 UTC. This gives a range of 21: 8,640,000,000,000,000 milliseconds to either side of 01 January, 1970 UTC. 22: ---*/ 23: 24: const minDateStr = "-271821-04-20T00:00:00.000Z"; 25: const minDate = new Date(-8640000000000000); 26: 27: assert.sameValue(minDate.toISOString(), minDateStr, "minDateStr"); 28: assert.sameValue(Date.parse(minDateStr), minDate.valueOf(), "parse minDateStr"); 29: 30: const maxDateStr = "+275760-09-13T00:00:00.000Z"; 31: const maxDate = new Date(8640000000000000); 32: 33: assert.sameValue(maxDate.toISOString(), maxDateStr, "maxDateStr"); 34: assert.sameValue(Date.parse(maxDateStr), maxDate.valueOf(), "parse maxDateStr"); 35: 36: const belowRange = "-271821-04-19T23:59:59.999Z"; 37: const aboveRange = "+275760-09-13T00:00:00.001Z"; 38: 39: assert.sameValue(Date.parse(belowRange), NaN, "parse below minimum time value"); 40: assert.sameValue(Date.parse(aboveRange), NaN, "parse above maximum time value"); 41:
Date_prototype_toDateString("built-ins/Date/prototype/toDateString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9591
built-ins/Date/prototype/toDateString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toDateString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 78 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.todatestring 08: info: | 09: Date.prototype.toDateString ( ) 10: 11: 5. Return DateString(_t_). 12: ---*/ 13: 14: var negative1DigitYearDateString = (new Date('-000001-07-01T00:00Z')).toDateString(); 15: var negative2DigitYearDateString = (new Date('-000012-07-01T00:00Z')).toDateString(); 16: var negative3DigitYearDateString = (new Date('-000123-07-01T00:00Z')).toDateString(); 17: var negative4DigitYearDateString = (new Date('-001234-07-01T00:00Z')).toDateString(); 18: var negative5DigitYearDateString = (new Date('-012345-07-01T00:00Z')).toDateString(); 19: var negative6DigitYearDateString = (new Date('-123456-07-01T00:00Z')).toDateString(); 20: 21: // Date.prototype.toDateString emits values like "Fri Mar 28 2019". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearDateString.split(' ')[3], '-0001', 24: 'Date.prototype.toDateString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearDateString.split(' ')[3], '-0012', 26: 'Date.prototype.toDateString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearDateString.split(' ')[3], '-0123', 28: 'Date.prototype.toDateString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearDateString.split(' ')[3], '-1234', 30: 'Date.prototype.toDateString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearDateString.split(' ')[3], '-12345', 32: 'Date.prototype.toDateString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearDateString.split(' ')[3], '-123456', 34: 'Date.prototype.toDateString serializes year -123456 to "-123456"'); 35:
Date_prototype_toDateString("built-ins/Date/prototype/toDateString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9591
built-ins/Date/prototype/toDateString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toDateString/negative-year.js:22:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 78 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.todatestring 07: info: | 08: Date.prototype.toDateString ( ) 09: 10: 5. Return DateString(_t_). 11: ---*/ 12: 13: var negative1DigitYearDateString = (new Date('-000001-07-01T00:00Z')).toDateString(); 14: var negative2DigitYearDateString = (new Date('-000012-07-01T00:00Z')).toDateString(); 15: var negative3DigitYearDateString = (new Date('-000123-07-01T00:00Z')).toDateString(); 16: var negative4DigitYearDateString = (new Date('-001234-07-01T00:00Z')).toDateString(); 17: var negative5DigitYearDateString = (new Date('-012345-07-01T00:00Z')).toDateString(); 18: var negative6DigitYearDateString = (new Date('-123456-07-01T00:00Z')).toDateString(); 19: 20: // Date.prototype.toDateString emits values like "Fri Mar 28 2019". 21: // Extract and verify just the year. 22: assert.sameValue(negative1DigitYearDateString.split(' ')[3], '-0001', 23: 'Date.prototype.toDateString serializes year -1 to "-0001"'); 24: assert.sameValue(negative2DigitYearDateString.split(' ')[3], '-0012', 25: 'Date.prototype.toDateString serializes year -12 to "-0012"'); 26: assert.sameValue(negative3DigitYearDateString.split(' ')[3], '-0123', 27: 'Date.prototype.toDateString serializes year -123 to "-0123"'); 28: assert.sameValue(negative4DigitYearDateString.split(' ')[3], '-1234', 29: 'Date.prototype.toDateString serializes year -1234 to "-1234"'); 30: assert.sameValue(negative5DigitYearDateString.split(' ')[3], '-12345', 31: 'Date.prototype.toDateString serializes year -12345 to "-12345"'); 32: assert.sameValue(negative6DigitYearDateString.split(' ')[3], '-123456', 33: 'Date.prototype.toDateString serializes year -123456 to "-123456"'); 34:
Date_prototype_toString("built-ins/Date/prototype/toString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9761
built-ins/Date/prototype/toString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 78 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.tostring 07: info: | 08: Date.prototype.toString ( ) 09: 10: 2. Return ToDateString(_tv_). 11: ---*/ 12: 13: var negative1DigitYearToString = (new Date('-000001-07-01T00:00Z')).toString(); 14: var negative2DigitYearToString = (new Date('-000012-07-01T00:00Z')).toString(); 15: var negative3DigitYearToString = (new Date('-000123-07-01T00:00Z')).toString(); 16: var negative4DigitYearToString = (new Date('-001234-07-01T00:00Z')).toString(); 17: var negative5DigitYearToString = (new Date('-012345-07-01T00:00Z')).toString(); 18: var negative6DigitYearToString = (new Date('-123456-07-01T00:00Z')).toString(); 19: 20: // Date.prototype.toString emits values like 21: // "Fri Mar 28 2019 10:23:42 GMT-0400 (Eastern Daylight Time)". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearToString.split(' ')[3], '-0001', 24: 'Date.prototype.toString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearToString.split(' ')[3], '-0012', 26: 'Date.prototype.toString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearToString.split(' ')[3], '-0123', 28: 'Date.prototype.toString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearToString.split(' ')[3], '-1234', 30: 'Date.prototype.toString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearToString.split(' ')[3], '-12345', 32: 'Date.prototype.toString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearToString.split(' ')[3], '-123456', 34: 'Date.prototype.toString serializes year -123456 to "-123456"'); 35:
Date_prototype_toString("built-ins/Date/prototype/toString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9761
built-ins/Date/prototype/toString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toString/negative-year.js:24:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 78 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.tostring 08: info: | 09: Date.prototype.toString ( ) 10: 11: 2. Return ToDateString(_tv_). 12: ---*/ 13: 14: var negative1DigitYearToString = (new Date('-000001-07-01T00:00Z')).toString(); 15: var negative2DigitYearToString = (new Date('-000012-07-01T00:00Z')).toString(); 16: var negative3DigitYearToString = (new Date('-000123-07-01T00:00Z')).toString(); 17: var negative4DigitYearToString = (new Date('-001234-07-01T00:00Z')).toString(); 18: var negative5DigitYearToString = (new Date('-012345-07-01T00:00Z')).toString(); 19: var negative6DigitYearToString = (new Date('-123456-07-01T00:00Z')).toString(); 20: 21: // Date.prototype.toString emits values like 22: // "Fri Mar 28 2019 10:23:42 GMT-0400 (Eastern Daylight Time)". 23: // Extract and verify just the year. 24: assert.sameValue(negative1DigitYearToString.split(' ')[3], '-0001', 25: 'Date.prototype.toString serializes year -1 to "-0001"'); 26: assert.sameValue(negative2DigitYearToString.split(' ')[3], '-0012', 27: 'Date.prototype.toString serializes year -12 to "-0012"'); 28: assert.sameValue(negative3DigitYearToString.split(' ')[3], '-0123', 29: 'Date.prototype.toString serializes year -123 to "-0123"'); 30: assert.sameValue(negative4DigitYearToString.split(' ')[3], '-1234', 31: 'Date.prototype.toString serializes year -1234 to "-1234"'); 32: assert.sameValue(negative5DigitYearToString.split(' ')[3], '-12345', 33: 'Date.prototype.toString serializes year -12345 to "-12345"'); 34: assert.sameValue(negative6DigitYearToString.split(' ')[3], '-123456', 35: 'Date.prototype.toString serializes year -123456 to "-123456"'); 36:
Date_prototype_toUTCString("built-ins/Date/prototype/toUTCString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9821
built-ins/Date/prototype/toUTCString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toUTCString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 78 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.toutcstring 08: info: | 09: Date.prototype.toUTCString ( ) 10: 11: 10. Return the string-concatenation of _weekday_, `","`, the code unit 0x0020 (SPACE), _day_, the code unit 0x0020 (SPACE), _month_, the code unit 0x0020 (SPACE), _yearSign_, _year_, the code unit 0x0020 (SPACE), and TimeString(_tv_). 12: ---*/ 13: 14: var negative1DigitYearToUTCString = (new Date('-000001-07-01T00:00Z')).toUTCString(); 15: var negative2DigitYearToUTCString = (new Date('-000012-07-01T00:00Z')).toUTCString(); 16: var negative3DigitYearToUTCString = (new Date('-000123-07-01T00:00Z')).toUTCString(); 17: var negative4DigitYearToUTCString = (new Date('-001234-07-01T00:00Z')).toUTCString(); 18: var negative5DigitYearToUTCString = (new Date('-012345-07-01T00:00Z')).toUTCString(); 19: var negative6DigitYearToUTCString = (new Date('-123456-07-01T00:00Z')).toUTCString(); 20: 21: // Date.prototype.toUTCString emits values like "Thu, 28 Mar 2019 10:23:42 GMT". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearToUTCString.split(' ')[3], '-0001', 24: 'Date.prototype.toUTCString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearToUTCString.split(' ')[3], '-0012', 26: 'Date.prototype.toUTCString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearToUTCString.split(' ')[3], '-0123', 28: 'Date.prototype.toUTCString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearToUTCString.split(' ')[3], '-1234', 30: 'Date.prototype.toUTCString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearToUTCString.split(' ')[3], '-12345', 32: 'Date.prototype.toUTCString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearToUTCString.split(' ')[3], '-123456', 34: 'Date.prototype.toUTCString serializes year -123456 to "-123456"'); 35:
Date_prototype_toUTCString("built-ins/Date/prototype/toUTCString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9821
built-ins/Date/prototype/toUTCString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toUTCString/negative-year.js:22:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 78 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.toutcstring 07: info: | 08: Date.prototype.toUTCString ( ) 09: 10: 10. Return the string-concatenation of _weekday_, `","`, the code unit 0x0020 (SPACE), _day_, the code unit 0x0020 (SPACE), _month_, the code unit 0x0020 (SPACE), _yearSign_, _year_, the code unit 0x0020 (SPACE), and TimeString(_tv_). 11: ---*/ 12: 13: var negative1DigitYearToUTCString = (new Date('-000001-07-01T00:00Z')).toUTCString(); 14: var negative2DigitYearToUTCString = (new Date('-000012-07-01T00:00Z')).toUTCString(); 15: var negative3DigitYearToUTCString = (new Date('-000123-07-01T00:00Z')).toUTCString(); 16: var negative4DigitYearToUTCString = (new Date('-001234-07-01T00:00Z')).toUTCString(); 17: var negative5DigitYearToUTCString = (new Date('-012345-07-01T00:00Z')).toUTCString(); 18: var negative6DigitYearToUTCString = (new Date('-123456-07-01T00:00Z')).toUTCString(); 19: 20: // Date.prototype.toUTCString emits values like "Thu, 28 Mar 2019 10:23:42 GMT". 21: // Extract and verify just the year. 22: assert.sameValue(negative1DigitYearToUTCString.split(' ')[3], '-0001', 23: 'Date.prototype.toUTCString serializes year -1 to "-0001"'); 24: assert.sameValue(negative2DigitYearToUTCString.split(' ')[3], '-0012', 25: 'Date.prototype.toUTCString serializes year -12 to "-0012"'); 26: assert.sameValue(negative3DigitYearToUTCString.split(' ')[3], '-0123', 27: 'Date.prototype.toUTCString serializes year -123 to "-0123"'); 28: assert.sameValue(negative4DigitYearToUTCString.split(' ')[3], '-1234', 29: 'Date.prototype.toUTCString serializes year -1234 to "-1234"'); 30: assert.sameValue(negative5DigitYearToUTCString.split(' ')[3], '-12345', 31: 'Date.prototype.toUTCString serializes year -12345 to "-12345"'); 32: assert.sameValue(negative6DigitYearToUTCString.split(' ')[3], '-123456', 33: 'Date.prototype.toUTCString serializes year -123456 to "-123456"'); 34:
Expressions_compoundAssignment("language/expressions/compound-assignment/mod-whitespace.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L13245
language/expressions/compound-assignment/mod-whitespace.js Jint.Runtime.JavaScriptException: U+0009 (expression) Expected SameValue(«0», «-0») to be true ---> Error: U+0009 (expression) Expected SameValue(«0», «-0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at language/expressions/compound-assignment/mod-whitespace.js:16:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: // Copyright 2009 the Sputnik authors. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: info: | 06: White Space and Line Terminator between LeftHandSideExpression and "@=" 07: or between "@=" and AssignmentExpression are allowed 08: es5id: 11.13.2_A1_T3 09: esid: sec-assignment-operators 10: description: Checking by using eval, check operator is x %= y 11: ---*/ 12: 13: var x; 14: 15: x = -1; 16: assert.sameValue(x %= -1, -0, 'U+0009 (expression)'); 17: assert.sameValue(x, -0, 'U+0009 (side effect)'); 18: 19: x = -1; 20: assert.sameValue(x�%=�-1, -0, 'U+000B (expression)'); 21: assert.sameValue(x, -0, 'U+000B (side effect)'); 22: 23: x = -1; 24: assert.sameValue(x %= -1, -0, 'U+000C (expression)'); 25: assert.sameValue(x, -0, 'U+000C (side effect)'); 26: 27: x = -1; 28: assert.sameValue(x %= -1, -0, 'U+0020 (expression)'); 29: assert.sameValue(x, -0, 'U+0020 (side effect)'); 30: 31: x = -1; 32: assert.sameValue(x %= -1, -0, 'U+00A0 (expression)'); 33: assert.sameValue(x, -0, 'U+00A0 (side effect)'); 34: 35: x = -1; 36: assert.sameValue(x 37: %= 38: -1, -0, 'U+000A (expression)'); 39: assert.sameValue(x, -0, 'U+000A (side effect)'); 40: 41: x = -1; 42: assert.sameValue(x %= -1, -0, 'U+000D (expression)'); 43: assert.sameValue(x, -0, 'U+000D (side effect)'); 44: 45: x = -1; 46: assert.sameValue(x
%=
-1, -0, 'U+2028 (expression)'); 47: assert.sameValue(x, -0, 'U+2028 (side effect)'); 48: 49: x = -1; 50: assert.sameValue(x
%=
-1, -0, 'U+2029 (expression)'); 51: assert.sameValue(x, -0, 'U+2029 (side effect)'); 52: 53: x = -1; 54: assert.sameValue(x �   55: 

%= �   56: 

-1, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (expression)'); 57: assert.sameValue(x, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (side effect)'); 58:
Expressions_compoundAssignment("language/expressions/compound-assignment/mod-whitespace.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L13245
language/expressions/compound-assignment/mod-whitespace.js Jint.Runtime.JavaScriptException: U+0009 (expression) Expected SameValue(«0», «-0») to be true ---> Error: U+0009 (expression) Expected SameValue(«0», «-0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at language/expressions/compound-assignment/mod-whitespace.js:17:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: "use strict"; 02: // Copyright 2009 the Sputnik authors. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: info: | 07: White Space and Line Terminator between LeftHandSideExpression and "@=" 08: or between "@=" and AssignmentExpression are allowed 09: es5id: 11.13.2_A1_T3 10: esid: sec-assignment-operators 11: description: Checking by using eval, check operator is x %= y 12: ---*/ 13: 14: var x; 15: 16: x = -1; 17: assert.sameValue(x %= -1, -0, 'U+0009 (expression)'); 18: assert.sameValue(x, -0, 'U+0009 (side effect)'); 19: 20: x = -1; 21: assert.sameValue(x�%=�-1, -0, 'U+000B (expression)'); 22: assert.sameValue(x, -0, 'U+000B (side effect)'); 23: 24: x = -1; 25: assert.sameValue(x %= -1, -0, 'U+000C (expression)'); 26: assert.sameValue(x, -0, 'U+000C (side effect)'); 27: 28: x = -1; 29: assert.sameValue(x %= -1, -0, 'U+0020 (expression)'); 30: assert.sameValue(x, -0, 'U+0020 (side effect)'); 31: 32: x = -1; 33: assert.sameValue(x %= -1, -0, 'U+00A0 (expression)'); 34: assert.sameValue(x, -0, 'U+00A0 (side effect)'); 35: 36: x = -1; 37: assert.sameValue(x 38: %= 39: -1, -0, 'U+000A (expression)'); 40: assert.sameValue(x, -0, 'U+000A (side effect)'); 41: 42: x = -1; 43: assert.sameValue(x %= -1, -0, 'U+000D (expression)'); 44: assert.sameValue(x, -0, 'U+000D (side effect)'); 45: 46: x = -1; 47: assert.sameValue(x
%=
-1, -0, 'U+2028 (expression)'); 48: assert.sameValue(x, -0, 'U+2028 (side effect)'); 49: 50: x = -1; 51: assert.sameValue(x
%=
-1, -0, 'U+2029 (expression)'); 52: assert.sameValue(x, -0, 'U+2029 (side effect)'); 53: 54: x = -1; 55: assert.sameValue(x �   56: 

%= �   57: 

-1, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (expression)'); 58: assert.sameValue(x, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (side effect)'); 59:
Expressions_compoundAssignment("language/expressions/compound-assignment/mod-whitespace.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L13245
language/expressions/compound-assignment/mod-whitespace.js Jint.Runtime.JavaScriptException: U+0009 (expression) Expected SameValue(«0», «-0») to be true ---> Error: U+0009 (expression) Expected SameValue(«0», «-0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at language/expressions/compound-assignment/mod-whitespace.js:16:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: // Copyright 2009 the Sputnik authors. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: info: | 06: White Space and Line Terminator between LeftHandSideExpression and "@=" 07: or between "@=" and AssignmentExpression are allowed 08: es5id: 11.13.2_A1_T3 09: esid: sec-assignment-operators 10: description: Checking by using eval, check operator is x %= y 11: ---*/ 12: 13: var x; 14: 15: x = -1; 16: assert.sameValue(x %= -1, -0, 'U+0009 (expression)'); 17: assert.sameValue(x, -0, 'U+0009 (side effect)'); 18: 19: x = -1; 20: assert.sameValue(x�%=�-1, -0, 'U+000B (expression)'); 21: assert.sameValue(x, -0, 'U+000B (side effect)'); 22: 23: x = -1; 24: assert.sameValue(x %= -1, -0, 'U+000C (expression)'); 25: assert.sameValue(x, -0, 'U+000C (side effect)'); 26: 27: x = -1; 28: assert.sameValue(x %= -1, -0, 'U+0020 (expression)'); 29: assert.sameValue(x, -0, 'U+0020 (side effect)'); 30: 31: x = -1; 32: assert.sameValue(x %= -1, -0, 'U+00A0 (expression)'); 33: assert.sameValue(x, -0, 'U+00A0 (side effect)'); 34: 35: x = -1; 36: assert.sameValue(x 37: %= 38: -1, -0, 'U+000A (expression)'); 39: assert.sameValue(x, -0, 'U+000A (side effect)'); 40: 41: x = -1; 42: assert.sameValue(x %= -1, -0, 'U+000D (expression)'); 43: assert.sameValue(x, -0, 'U+000D (side effect)'); 44: 45: x = -1; 46: assert.sameValue(x
%=
-1, -0, 'U+2028 (expression)'); 47: assert.sameValue(x, -0, 'U+2028 (side effect)'); 48: 49: x = -1; 50: assert.sameValue(x
%=
-1, -0, 'U+2029 (expression)'); 51: assert.sameValue(x, -0, 'U+2029 (side effect)'); 52: 53: x = -1; 54: assert.sameValue(x �   55: 

%= �   56: 

-1, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (expression)'); 57: assert.sameValue(x, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (side effect)'); 58:
Expressions_compoundAssignment("language/expressions/compound-assignment/mod-whitespace.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L13245
language/expressions/compound-assignment/mod-whitespace.js Jint.Runtime.JavaScriptException: U+0009 (expression) Expected SameValue(«0», «-0») to be true ---> Error: U+0009 (expression) Expected SameValue(«0», «-0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at language/expressions/compound-assignment/mod-whitespace.js:17:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: "use strict"; 02: // Copyright 2009 the Sputnik authors. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: info: | 07: White Space and Line Terminator between LeftHandSideExpression and "@=" 08: or between "@=" and AssignmentExpression are allowed 09: es5id: 11.13.2_A1_T3 10: esid: sec-assignment-operators 11: description: Checking by using eval, check operator is x %= y 12: ---*/ 13: 14: var x; 15: 16: x = -1; 17: assert.sameValue(x %= -1, -0, 'U+0009 (expression)'); 18: assert.sameValue(x, -0, 'U+0009 (side effect)'); 19: 20: x = -1; 21: assert.sameValue(x�%=�-1, -0, 'U+000B (expression)'); 22: assert.sameValue(x, -0, 'U+000B (side effect)'); 23: 24: x = -1; 25: assert.sameValue(x %= -1, -0, 'U+000C (expression)'); 26: assert.sameValue(x, -0, 'U+000C (side effect)'); 27: 28: x = -1; 29: assert.sameValue(x %= -1, -0, 'U+0020 (expression)'); 30: assert.sameValue(x, -0, 'U+0020 (side effect)'); 31: 32: x = -1; 33: assert.sameValue(x %= -1, -0, 'U+00A0 (expression)'); 34: assert.sameValue(x, -0, 'U+00A0 (side effect)'); 35: 36: x = -1; 37: assert.sameValue(x 38: %= 39: -1, -0, 'U+000A (expression)'); 40: assert.sameValue(x, -0, 'U+000A (side effect)'); 41: 42: x = -1; 43: assert.sameValue(x %= -1, -0, 'U+000D (expression)'); 44: assert.sameValue(x, -0, 'U+000D (side effect)'); 45: 46: x = -1; 47: assert.sameValue(x
%=
-1, -0, 'U+2028 (expression)'); 48: assert.sameValue(x, -0, 'U+2028 (side effect)'); 49: 50: x = -1; 51: assert.sameValue(x
%=
-1, -0, 'U+2029 (expression)'); 52: assert.sameValue(x, -0, 'U+2029 (side effect)'); 53: 54: x = -1; 55: assert.sameValue(x �   56: 

%= �   57: 

-1, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (expression)'); 58: assert.sameValue(x, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (side effect)'); 59:
Date_parse("built-ins/Date/parse/time-value-maximum-range.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L8314
built-ins/Date/parse/time-value-maximum-range.js Jint.Runtime.JavaScriptException: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true ---> Error: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/parse/time-value-maximum-range.js:27:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: // Copyright (C) 2018 Andrew Paprocki. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-date.parse 06: description: > 07: Date.parse return value is limited to specified time value maximum range 08: info: | 09: Date.parse ( string ) 10: 11: parse interprets the resulting String as a date and time; it returns a 12: Number, the UTC time value corresponding to the date and time. 13: 14: A Date object contains a Number indicating a particular instant in time to 15: within a millisecond. Such a Number is called a time value. 16: 17: The actual range of times supported by ECMAScript Date objects is slightly 18: smaller: exactly -100,000,000 days to 100,000,000 days measured relative to 19: midnight at the beginning of 01 January, 1970 UTC. This gives a range of 20: 8,640,000,000,000,000 milliseconds to either side of 01 January, 1970 UTC. 21: ---*/ 22: 23: const minDateStr = "-271821-04-20T00:00:00.000Z"; 24: const minDate = new Date(-8640000000000000); 25: 26: assert.sameValue(minDate.toISOString(), minDateStr, "minDateStr"); 27: assert.sameValue(Date.parse(minDateStr), minDate.valueOf(), "parse minDateStr"); 28: 29: const maxDateStr = "+275760-09-13T00:00:00.000Z"; 30: const maxDate = new Date(8640000000000000); 31: 32: assert.sameValue(maxDate.toISOString(), maxDateStr, "maxDateStr"); 33: assert.sameValue(Date.parse(maxDateStr), maxDate.valueOf(), "parse maxDateStr"); 34: 35: const belowRange = "-271821-04-19T23:59:59.999Z"; 36: const aboveRange = "+275760-09-13T00:00:00.001Z"; 37: 38: assert.sameValue(Date.parse(belowRange), NaN, "parse below minimum time value"); 39: assert.sameValue(Date.parse(aboveRange), NaN, "parse above maximum time value"); 40:
Date_parse("built-ins/Date/parse/time-value-maximum-range.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L8314
built-ins/Date/parse/time-value-maximum-range.js Jint.Runtime.JavaScriptException: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true ---> Error: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/parse/time-value-maximum-range.js:28:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: "use strict"; 02: // Copyright (C) 2018 Andrew Paprocki. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-date.parse 07: description: > 08: Date.parse return value is limited to specified time value maximum range 09: info: | 10: Date.parse ( string ) 11: 12: parse interprets the resulting String as a date and time; it returns a 13: Number, the UTC time value corresponding to the date and time. 14: 15: A Date object contains a Number indicating a particular instant in time to 16: within a millisecond. Such a Number is called a time value. 17: 18: The actual range of times supported by ECMAScript Date objects is slightly 19: smaller: exactly -100,000,000 days to 100,000,000 days measured relative to 20: midnight at the beginning of 01 January, 1970 UTC. This gives a range of 21: 8,640,000,000,000,000 milliseconds to either side of 01 January, 1970 UTC. 22: ---*/ 23: 24: const minDateStr = "-271821-04-20T00:00:00.000Z"; 25: const minDate = new Date(-8640000000000000); 26: 27: assert.sameValue(minDate.toISOString(), minDateStr, "minDateStr"); 28: assert.sameValue(Date.parse(minDateStr), minDate.valueOf(), "parse minDateStr"); 29: 30: const maxDateStr = "+275760-09-13T00:00:00.000Z"; 31: const maxDate = new Date(8640000000000000); 32: 33: assert.sameValue(maxDate.toISOString(), maxDateStr, "maxDateStr"); 34: assert.sameValue(Date.parse(maxDateStr), maxDate.valueOf(), "parse maxDateStr"); 35: 36: const belowRange = "-271821-04-19T23:59:59.999Z"; 37: const aboveRange = "+275760-09-13T00:00:00.001Z"; 38: 39: assert.sameValue(Date.parse(belowRange), NaN, "parse below minimum time value"); 40: assert.sameValue(Date.parse(aboveRange), NaN, "parse above maximum time value"); 41:
Date_prototype_toDateString("built-ins/Date/prototype/toDateString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9591
built-ins/Date/prototype/toDateString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toDateString/negative-year.js:22:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.todatestring 07: info: | 08: Date.prototype.toDateString ( ) 09: 10: 5. Return DateString(_t_). 11: ---*/ 12: 13: var negative1DigitYearDateString = (new Date('-000001-07-01T00:00Z')).toDateString(); 14: var negative2DigitYearDateString = (new Date('-000012-07-01T00:00Z')).toDateString(); 15: var negative3DigitYearDateString = (new Date('-000123-07-01T00:00Z')).toDateString(); 16: var negative4DigitYearDateString = (new Date('-001234-07-01T00:00Z')).toDateString(); 17: var negative5DigitYearDateString = (new Date('-012345-07-01T00:00Z')).toDateString(); 18: var negative6DigitYearDateString = (new Date('-123456-07-01T00:00Z')).toDateString(); 19: 20: // Date.prototype.toDateString emits values like "Fri Mar 28 2019". 21: // Extract and verify just the year. 22: assert.sameValue(negative1DigitYearDateString.split(' ')[3], '-0001', 23: 'Date.prototype.toDateString serializes year -1 to "-0001"'); 24: assert.sameValue(negative2DigitYearDateString.split(' ')[3], '-0012', 25: 'Date.prototype.toDateString serializes year -12 to "-0012"'); 26: assert.sameValue(negative3DigitYearDateString.split(' ')[3], '-0123', 27: 'Date.prototype.toDateString serializes year -123 to "-0123"'); 28: assert.sameValue(negative4DigitYearDateString.split(' ')[3], '-1234', 29: 'Date.prototype.toDateString serializes year -1234 to "-1234"'); 30: assert.sameValue(negative5DigitYearDateString.split(' ')[3], '-12345', 31: 'Date.prototype.toDateString serializes year -12345 to "-12345"'); 32: assert.sameValue(negative6DigitYearDateString.split(' ')[3], '-123456', 33: 'Date.prototype.toDateString serializes year -123456 to "-123456"'); 34:
Date_prototype_toDateString("built-ins/Date/prototype/toDateString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9591
built-ins/Date/prototype/toDateString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toDateString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.todatestring 08: info: | 09: Date.prototype.toDateString ( ) 10: 11: 5. Return DateString(_t_). 12: ---*/ 13: 14: var negative1DigitYearDateString = (new Date('-000001-07-01T00:00Z')).toDateString(); 15: var negative2DigitYearDateString = (new Date('-000012-07-01T00:00Z')).toDateString(); 16: var negative3DigitYearDateString = (new Date('-000123-07-01T00:00Z')).toDateString(); 17: var negative4DigitYearDateString = (new Date('-001234-07-01T00:00Z')).toDateString(); 18: var negative5DigitYearDateString = (new Date('-012345-07-01T00:00Z')).toDateString(); 19: var negative6DigitYearDateString = (new Date('-123456-07-01T00:00Z')).toDateString(); 20: 21: // Date.prototype.toDateString emits values like "Fri Mar 28 2019". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearDateString.split(' ')[3], '-0001', 24: 'Date.prototype.toDateString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearDateString.split(' ')[3], '-0012', 26: 'Date.prototype.toDateString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearDateString.split(' ')[3], '-0123', 28: 'Date.prototype.toDateString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearDateString.split(' ')[3], '-1234', 30: 'Date.prototype.toDateString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearDateString.split(' ')[3], '-12345', 32: 'Date.prototype.toDateString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearDateString.split(' ')[3], '-123456', 34: 'Date.prototype.toDateString serializes year -123456 to "-123456"'); 35:
Date_prototype_toString("built-ins/Date/prototype/toString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9761
built-ins/Date/prototype/toString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.tostring 07: info: | 08: Date.prototype.toString ( ) 09: 10: 2. Return ToDateString(_tv_). 11: ---*/ 12: 13: var negative1DigitYearToString = (new Date('-000001-07-01T00:00Z')).toString(); 14: var negative2DigitYearToString = (new Date('-000012-07-01T00:00Z')).toString(); 15: var negative3DigitYearToString = (new Date('-000123-07-01T00:00Z')).toString(); 16: var negative4DigitYearToString = (new Date('-001234-07-01T00:00Z')).toString(); 17: var negative5DigitYearToString = (new Date('-012345-07-01T00:00Z')).toString(); 18: var negative6DigitYearToString = (new Date('-123456-07-01T00:00Z')).toString(); 19: 20: // Date.prototype.toString emits values like 21: // "Fri Mar 28 2019 10:23:42 GMT-0400 (Eastern Daylight Time)". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearToString.split(' ')[3], '-0001', 24: 'Date.prototype.toString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearToString.split(' ')[3], '-0012', 26: 'Date.prototype.toString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearToString.split(' ')[3], '-0123', 28: 'Date.prototype.toString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearToString.split(' ')[3], '-1234', 30: 'Date.prototype.toString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearToString.split(' ')[3], '-12345', 32: 'Date.prototype.toString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearToString.split(' ')[3], '-123456', 34: 'Date.prototype.toString serializes year -123456 to "-123456"'); 35:
Date_prototype_toString("built-ins/Date/prototype/toString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9761
built-ins/Date/prototype/toString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toString/negative-year.js:24:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.tostring 08: info: | 09: Date.prototype.toString ( ) 10: 11: 2. Return ToDateString(_tv_). 12: ---*/ 13: 14: var negative1DigitYearToString = (new Date('-000001-07-01T00:00Z')).toString(); 15: var negative2DigitYearToString = (new Date('-000012-07-01T00:00Z')).toString(); 16: var negative3DigitYearToString = (new Date('-000123-07-01T00:00Z')).toString(); 17: var negative4DigitYearToString = (new Date('-001234-07-01T00:00Z')).toString(); 18: var negative5DigitYearToString = (new Date('-012345-07-01T00:00Z')).toString(); 19: var negative6DigitYearToString = (new Date('-123456-07-01T00:00Z')).toString(); 20: 21: // Date.prototype.toString emits values like 22: // "Fri Mar 28 2019 10:23:42 GMT-0400 (Eastern Daylight Time)". 23: // Extract and verify just the year. 24: assert.sameValue(negative1DigitYearToString.split(' ')[3], '-0001', 25: 'Date.prototype.toString serializes year -1 to "-0001"'); 26: assert.sameValue(negative2DigitYearToString.split(' ')[3], '-0012', 27: 'Date.prototype.toString serializes year -12 to "-0012"'); 28: assert.sameValue(negative3DigitYearToString.split(' ')[3], '-0123', 29: 'Date.prototype.toString serializes year -123 to "-0123"'); 30: assert.sameValue(negative4DigitYearToString.split(' ')[3], '-1234', 31: 'Date.prototype.toString serializes year -1234 to "-1234"'); 32: assert.sameValue(negative5DigitYearToString.split(' ')[3], '-12345', 33: 'Date.prototype.toString serializes year -12345 to "-12345"'); 34: assert.sameValue(negative6DigitYearToString.split(' ')[3], '-123456', 35: 'Date.prototype.toString serializes year -123456 to "-123456"'); 36:
Date_prototype_toUTCString("built-ins/Date/prototype/toUTCString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9821
built-ins/Date/prototype/toUTCString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toUTCString/negative-year.js:22:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.toutcstring 07: info: | 08: Date.prototype.toUTCString ( ) 09: 10: 10. Return the string-concatenation of _weekday_, `","`, the code unit 0x0020 (SPACE), _day_, the code unit 0x0020 (SPACE), _month_, the code unit 0x0020 (SPACE), _yearSign_, _year_, the code unit 0x0020 (SPACE), and TimeString(_tv_). 11: ---*/ 12: 13: var negative1DigitYearToUTCString = (new Date('-000001-07-01T00:00Z')).toUTCString(); 14: var negative2DigitYearToUTCString = (new Date('-000012-07-01T00:00Z')).toUTCString(); 15: var negative3DigitYearToUTCString = (new Date('-000123-07-01T00:00Z')).toUTCString(); 16: var negative4DigitYearToUTCString = (new Date('-001234-07-01T00:00Z')).toUTCString(); 17: var negative5DigitYearToUTCString = (new Date('-012345-07-01T00:00Z')).toUTCString(); 18: var negative6DigitYearToUTCString = (new Date('-123456-07-01T00:00Z')).toUTCString(); 19: 20: // Date.prototype.toUTCString emits values like "Thu, 28 Mar 2019 10:23:42 GMT". 21: // Extract and verify just the year. 22: assert.sameValue(negative1DigitYearToUTCString.split(' ')[3], '-0001', 23: 'Date.prototype.toUTCString serializes year -1 to "-0001"'); 24: assert.sameValue(negative2DigitYearToUTCString.split(' ')[3], '-0012', 25: 'Date.prototype.toUTCString serializes year -12 to "-0012"'); 26: assert.sameValue(negative3DigitYearToUTCString.split(' ')[3], '-0123', 27: 'Date.prototype.toUTCString serializes year -123 to "-0123"'); 28: assert.sameValue(negative4DigitYearToUTCString.split(' ')[3], '-1234', 29: 'Date.prototype.toUTCString serializes year -1234 to "-1234"'); 30: assert.sameValue(negative5DigitYearToUTCString.split(' ')[3], '-12345', 31: 'Date.prototype.toUTCString serializes year -12345 to "-12345"'); 32: assert.sameValue(negative6DigitYearToUTCString.split(' ')[3], '-123456', 33: 'Date.prototype.toUTCString serializes year -123456 to "-123456"'); 34:
Date_prototype_toUTCString("built-ins/Date/prototype/toUTCString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9821
built-ins/Date/prototype/toUTCString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toUTCString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 801 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 96 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.toutcstring 08: info: | 09: Date.prototype.toUTCString ( ) 10: 11: 10. Return the string-concatenation of _weekday_, `","`, the code unit 0x0020 (SPACE), _day_, the code unit 0x0020 (SPACE), _month_, the code unit 0x0020 (SPACE), _yearSign_, _year_, the code unit 0x0020 (SPACE), and TimeString(_tv_). 12: ---*/ 13: 14: var negative1DigitYearToUTCString = (new Date('-000001-07-01T00:00Z')).toUTCString(); 15: var negative2DigitYearToUTCString = (new Date('-000012-07-01T00:00Z')).toUTCString(); 16: var negative3DigitYearToUTCString = (new Date('-000123-07-01T00:00Z')).toUTCString(); 17: var negative4DigitYearToUTCString = (new Date('-001234-07-01T00:00Z')).toUTCString(); 18: var negative5DigitYearToUTCString = (new Date('-012345-07-01T00:00Z')).toUTCString(); 19: var negative6DigitYearToUTCString = (new Date('-123456-07-01T00:00Z')).toUTCString(); 20: 21: // Date.prototype.toUTCString emits values like "Thu, 28 Mar 2019 10:23:42 GMT". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearToUTCString.split(' ')[3], '-0001', 24: 'Date.prototype.toUTCString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearToUTCString.split(' ')[3], '-0012', 26: 'Date.prototype.toUTCString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearToUTCString.split(' ')[3], '-0123', 28: 'Date.prototype.toUTCString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearToUTCString.split(' ')[3], '-1234', 30: 'Date.prototype.toUTCString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearToUTCString.split(' ')[3], '-12345', 32: 'Date.prototype.toUTCString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearToUTCString.split(' ')[3], '-123456', 34: 'Date.prototype.toUTCString serializes year -123456 to "-123456"'); 35:
Date_parse("built-ins/Date/parse/time-value-maximum-range.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L8314
built-ins/Date/parse/time-value-maximum-range.js Jint.Runtime.JavaScriptException: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true ---> Error: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/parse/time-value-maximum-range.js:27:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78 01: // Copyright (C) 2018 Andrew Paprocki. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-date.parse 06: description: > 07: Date.parse return value is limited to specified time value maximum range 08: info: | 09: Date.parse ( string ) 10: 11: parse interprets the resulting String as a date and time; it returns a 12: Number, the UTC time value corresponding to the date and time. 13: 14: A Date object contains a Number indicating a particular instant in time to 15: within a millisecond. Such a Number is called a time value. 16: 17: The actual range of times supported by ECMAScript Date objects is slightly 18: smaller: exactly -100,000,000 days to 100,000,000 days measured relative to 19: midnight at the beginning of 01 January, 1970 UTC. This gives a range of 20: 8,640,000,000,000,000 milliseconds to either side of 01 January, 1970 UTC. 21: ---*/ 22: 23: const minDateStr = "-271821-04-20T00:00:00.000Z"; 24: const minDate = new Date(-8640000000000000); 25: 26: assert.sameValue(minDate.toISOString(), minDateStr, "minDateStr"); 27: assert.sameValue(Date.parse(minDateStr), minDate.valueOf(), "parse minDateStr"); 28: 29: const maxDateStr = "+275760-09-13T00:00:00.000Z"; 30: const maxDate = new Date(8640000000000000); 31: 32: assert.sameValue(maxDate.toISOString(), maxDateStr, "maxDateStr"); 33: assert.sameValue(Date.parse(maxDateStr), maxDate.valueOf(), "parse maxDateStr"); 34: 35: const belowRange = "-271821-04-19T23:59:59.999Z"; 36: const aboveRange = "+275760-09-13T00:00:00.001Z"; 37: 38: assert.sameValue(Date.parse(belowRange), NaN, "parse below minimum time value"); 39: assert.sameValue(Date.parse(aboveRange), NaN, "parse above maximum time value"); 40:
Date_parse("built-ins/Date/parse/time-value-maximum-range.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L8314
built-ins/Date/parse/time-value-maximum-range.js Jint.Runtime.JavaScriptException: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true ---> Error: parse minDateStr Expected SameValue(«NaN», «-8640000000000000») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/parse/time-value-maximum-range.js:28:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78 01: "use strict"; 02: // Copyright (C) 2018 Andrew Paprocki. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-date.parse 07: description: > 08: Date.parse return value is limited to specified time value maximum range 09: info: | 10: Date.parse ( string ) 11: 12: parse interprets the resulting String as a date and time; it returns a 13: Number, the UTC time value corresponding to the date and time. 14: 15: A Date object contains a Number indicating a particular instant in time to 16: within a millisecond. Such a Number is called a time value. 17: 18: The actual range of times supported by ECMAScript Date objects is slightly 19: smaller: exactly -100,000,000 days to 100,000,000 days measured relative to 20: midnight at the beginning of 01 January, 1970 UTC. This gives a range of 21: 8,640,000,000,000,000 milliseconds to either side of 01 January, 1970 UTC. 22: ---*/ 23: 24: const minDateStr = "-271821-04-20T00:00:00.000Z"; 25: const minDate = new Date(-8640000000000000); 26: 27: assert.sameValue(minDate.toISOString(), minDateStr, "minDateStr"); 28: assert.sameValue(Date.parse(minDateStr), minDate.valueOf(), "parse minDateStr"); 29: 30: const maxDateStr = "+275760-09-13T00:00:00.000Z"; 31: const maxDate = new Date(8640000000000000); 32: 33: assert.sameValue(maxDate.toISOString(), maxDateStr, "maxDateStr"); 34: assert.sameValue(Date.parse(maxDateStr), maxDate.valueOf(), "parse maxDateStr"); 35: 36: const belowRange = "-271821-04-19T23:59:59.999Z"; 37: const aboveRange = "+275760-09-13T00:00:00.001Z"; 38: 39: assert.sameValue(Date.parse(belowRange), NaN, "parse below minimum time value"); 40: assert.sameValue(Date.parse(aboveRange), NaN, "parse above maximum time value"); 41:
Date_prototype_toDateString("built-ins/Date/prototype/toDateString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9591
built-ins/Date/prototype/toDateString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toDateString/negative-year.js:22:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.todatestring 07: info: | 08: Date.prototype.toDateString ( ) 09: 10: 5. Return DateString(_t_). 11: ---*/ 12: 13: var negative1DigitYearDateString = (new Date('-000001-07-01T00:00Z')).toDateString(); 14: var negative2DigitYearDateString = (new Date('-000012-07-01T00:00Z')).toDateString(); 15: var negative3DigitYearDateString = (new Date('-000123-07-01T00:00Z')).toDateString(); 16: var negative4DigitYearDateString = (new Date('-001234-07-01T00:00Z')).toDateString(); 17: var negative5DigitYearDateString = (new Date('-012345-07-01T00:00Z')).toDateString(); 18: var negative6DigitYearDateString = (new Date('-123456-07-01T00:00Z')).toDateString(); 19: 20: // Date.prototype.toDateString emits values like "Fri Mar 28 2019". 21: // Extract and verify just the year. 22: assert.sameValue(negative1DigitYearDateString.split(' ')[3], '-0001', 23: 'Date.prototype.toDateString serializes year -1 to "-0001"'); 24: assert.sameValue(negative2DigitYearDateString.split(' ')[3], '-0012', 25: 'Date.prototype.toDateString serializes year -12 to "-0012"'); 26: assert.sameValue(negative3DigitYearDateString.split(' ')[3], '-0123', 27: 'Date.prototype.toDateString serializes year -123 to "-0123"'); 28: assert.sameValue(negative4DigitYearDateString.split(' ')[3], '-1234', 29: 'Date.prototype.toDateString serializes year -1234 to "-1234"'); 30: assert.sameValue(negative5DigitYearDateString.split(' ')[3], '-12345', 31: 'Date.prototype.toDateString serializes year -12345 to "-12345"'); 32: assert.sameValue(negative6DigitYearDateString.split(' ')[3], '-123456', 33: 'Date.prototype.toDateString serializes year -123456 to "-123456"'); 34:
Date_prototype_toDateString("built-ins/Date/prototype/toDateString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9591
built-ins/Date/prototype/toDateString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toDateString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toDateString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.todatestring 08: info: | 09: Date.prototype.toDateString ( ) 10: 11: 5. Return DateString(_t_). 12: ---*/ 13: 14: var negative1DigitYearDateString = (new Date('-000001-07-01T00:00Z')).toDateString(); 15: var negative2DigitYearDateString = (new Date('-000012-07-01T00:00Z')).toDateString(); 16: var negative3DigitYearDateString = (new Date('-000123-07-01T00:00Z')).toDateString(); 17: var negative4DigitYearDateString = (new Date('-001234-07-01T00:00Z')).toDateString(); 18: var negative5DigitYearDateString = (new Date('-012345-07-01T00:00Z')).toDateString(); 19: var negative6DigitYearDateString = (new Date('-123456-07-01T00:00Z')).toDateString(); 20: 21: // Date.prototype.toDateString emits values like "Fri Mar 28 2019". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearDateString.split(' ')[3], '-0001', 24: 'Date.prototype.toDateString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearDateString.split(' ')[3], '-0012', 26: 'Date.prototype.toDateString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearDateString.split(' ')[3], '-0123', 28: 'Date.prototype.toDateString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearDateString.split(' ')[3], '-1234', 30: 'Date.prototype.toDateString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearDateString.split(' ')[3], '-12345', 32: 'Date.prototype.toDateString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearDateString.split(' ')[3], '-123456', 34: 'Date.prototype.toDateString serializes year -123456 to "-123456"'); 35:
Date_prototype_toString("built-ins/Date/prototype/toString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9761
built-ins/Date/prototype/toString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.tostring 07: info: | 08: Date.prototype.toString ( ) 09: 10: 2. Return ToDateString(_tv_). 11: ---*/ 12: 13: var negative1DigitYearToString = (new Date('-000001-07-01T00:00Z')).toString(); 14: var negative2DigitYearToString = (new Date('-000012-07-01T00:00Z')).toString(); 15: var negative3DigitYearToString = (new Date('-000123-07-01T00:00Z')).toString(); 16: var negative4DigitYearToString = (new Date('-001234-07-01T00:00Z')).toString(); 17: var negative5DigitYearToString = (new Date('-012345-07-01T00:00Z')).toString(); 18: var negative6DigitYearToString = (new Date('-123456-07-01T00:00Z')).toString(); 19: 20: // Date.prototype.toString emits values like 21: // "Fri Mar 28 2019 10:23:42 GMT-0400 (Eastern Daylight Time)". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearToString.split(' ')[3], '-0001', 24: 'Date.prototype.toString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearToString.split(' ')[3], '-0012', 26: 'Date.prototype.toString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearToString.split(' ')[3], '-0123', 28: 'Date.prototype.toString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearToString.split(' ')[3], '-1234', 30: 'Date.prototype.toString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearToString.split(' ')[3], '-12345', 32: 'Date.prototype.toString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearToString.split(' ')[3], '-123456', 34: 'Date.prototype.toString serializes year -123456 to "-123456"'); 35:
Date_prototype_toString("built-ins/Date/prototype/toString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9761
built-ins/Date/prototype/toString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toString/negative-year.js:24:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.tostring 08: info: | 09: Date.prototype.toString ( ) 10: 11: 2. Return ToDateString(_tv_). 12: ---*/ 13: 14: var negative1DigitYearToString = (new Date('-000001-07-01T00:00Z')).toString(); 15: var negative2DigitYearToString = (new Date('-000012-07-01T00:00Z')).toString(); 16: var negative3DigitYearToString = (new Date('-000123-07-01T00:00Z')).toString(); 17: var negative4DigitYearToString = (new Date('-001234-07-01T00:00Z')).toString(); 18: var negative5DigitYearToString = (new Date('-012345-07-01T00:00Z')).toString(); 19: var negative6DigitYearToString = (new Date('-123456-07-01T00:00Z')).toString(); 20: 21: // Date.prototype.toString emits values like 22: // "Fri Mar 28 2019 10:23:42 GMT-0400 (Eastern Daylight Time)". 23: // Extract and verify just the year. 24: assert.sameValue(negative1DigitYearToString.split(' ')[3], '-0001', 25: 'Date.prototype.toString serializes year -1 to "-0001"'); 26: assert.sameValue(negative2DigitYearToString.split(' ')[3], '-0012', 27: 'Date.prototype.toString serializes year -12 to "-0012"'); 28: assert.sameValue(negative3DigitYearToString.split(' ')[3], '-0123', 29: 'Date.prototype.toString serializes year -123 to "-0123"'); 30: assert.sameValue(negative4DigitYearToString.split(' ')[3], '-1234', 31: 'Date.prototype.toString serializes year -1234 to "-1234"'); 32: assert.sameValue(negative5DigitYearToString.split(' ')[3], '-12345', 33: 'Date.prototype.toString serializes year -12345 to "-12345"'); 34: assert.sameValue(negative6DigitYearToString.split(' ')[3], '-123456', 35: 'Date.prototype.toString serializes year -123456 to "-123456"'); 36:
Date_prototype_toUTCString("built-ins/Date/prototype/toUTCString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9821
built-ins/Date/prototype/toUTCString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toUTCString/negative-year.js:23:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78 01: "use strict"; 02: // Copyright (C) 2018 Richard Gibson. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: /*--- 05: description: > 06: Negative years must be serialized with at least four digits 07: esid: sec-date.prototype.toutcstring 08: info: | 09: Date.prototype.toUTCString ( ) 10: 11: 10. Return the string-concatenation of _weekday_, `","`, the code unit 0x0020 (SPACE), _day_, the code unit 0x0020 (SPACE), _month_, the code unit 0x0020 (SPACE), _yearSign_, _year_, the code unit 0x0020 (SPACE), and TimeString(_tv_). 12: ---*/ 13: 14: var negative1DigitYearToUTCString = (new Date('-000001-07-01T00:00Z')).toUTCString(); 15: var negative2DigitYearToUTCString = (new Date('-000012-07-01T00:00Z')).toUTCString(); 16: var negative3DigitYearToUTCString = (new Date('-000123-07-01T00:00Z')).toUTCString(); 17: var negative4DigitYearToUTCString = (new Date('-001234-07-01T00:00Z')).toUTCString(); 18: var negative5DigitYearToUTCString = (new Date('-012345-07-01T00:00Z')).toUTCString(); 19: var negative6DigitYearToUTCString = (new Date('-123456-07-01T00:00Z')).toUTCString(); 20: 21: // Date.prototype.toUTCString emits values like "Thu, 28 Mar 2019 10:23:42 GMT". 22: // Extract and verify just the year. 23: assert.sameValue(negative1DigitYearToUTCString.split(' ')[3], '-0001', 24: 'Date.prototype.toUTCString serializes year -1 to "-0001"'); 25: assert.sameValue(negative2DigitYearToUTCString.split(' ')[3], '-0012', 26: 'Date.prototype.toUTCString serializes year -12 to "-0012"'); 27: assert.sameValue(negative3DigitYearToUTCString.split(' ')[3], '-0123', 28: 'Date.prototype.toUTCString serializes year -123 to "-0123"'); 29: assert.sameValue(negative4DigitYearToUTCString.split(' ')[3], '-1234', 30: 'Date.prototype.toUTCString serializes year -1234 to "-1234"'); 31: assert.sameValue(negative5DigitYearToUTCString.split(' ')[3], '-12345', 32: 'Date.prototype.toUTCString serializes year -12345 to "-12345"'); 33: assert.sameValue(negative6DigitYearToUTCString.split(' ')[3], '-123456', 34: 'Date.prototype.toUTCString serializes year -123456 to "-123456"'); 35:
Date_prototype_toUTCString("built-ins/Date/prototype/toUTCString/negative-year.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L9821
built-ins/Date/prototype/toUTCString/negative-year.js Jint.Runtime.JavaScriptException: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true ---> Error: Date.prototype.toUTCString serializes year -1 to "-0001" Expected SameValue(«undefined», «-0001») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Date/prototype/toUTCString/negative-year.js:22:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 97 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78 01: // Copyright (C) 2018 Richard Gibson. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: /*--- 04: description: > 05: Negative years must be serialized with at least four digits 06: esid: sec-date.prototype.toutcstring 07: info: | 08: Date.prototype.toUTCString ( ) 09: 10: 10. Return the string-concatenation of _weekday_, `","`, the code unit 0x0020 (SPACE), _day_, the code unit 0x0020 (SPACE), _month_, the code unit 0x0020 (SPACE), _yearSign_, _year_, the code unit 0x0020 (SPACE), and TimeString(_tv_). 11: ---*/ 12: 13: var negative1DigitYearToUTCString = (new Date('-000001-07-01T00:00Z')).toUTCString(); 14: var negative2DigitYearToUTCString = (new Date('-000012-07-01T00:00Z')).toUTCString(); 15: var negative3DigitYearToUTCString = (new Date('-000123-07-01T00:00Z')).toUTCString(); 16: var negative4DigitYearToUTCString = (new Date('-001234-07-01T00:00Z')).toUTCString(); 17: var negative5DigitYearToUTCString = (new Date('-012345-07-01T00:00Z')).toUTCString(); 18: var negative6DigitYearToUTCString = (new Date('-123456-07-01T00:00Z')).toUTCString(); 19: 20: // Date.prototype.toUTCString emits values like "Thu, 28 Mar 2019 10:23:42 GMT". 21: // Extract and verify just the year. 22: assert.sameValue(negative1DigitYearToUTCString.split(' ')[3], '-0001', 23: 'Date.prototype.toUTCString serializes year -1 to "-0001"'); 24: assert.sameValue(negative2DigitYearToUTCString.split(' ')[3], '-0012', 25: 'Date.prototype.toUTCString serializes year -12 to "-0012"'); 26: assert.sameValue(negative3DigitYearToUTCString.split(' ')[3], '-0123', 27: 'Date.prototype.toUTCString serializes year -123 to "-0123"'); 28: assert.sameValue(negative4DigitYearToUTCString.split(' ')[3], '-1234', 29: 'Date.prototype.toUTCString serializes year -1234 to "-1234"'); 30: assert.sameValue(negative5DigitYearToUTCString.split(' ')[3], '-12345', 31: 'Date.prototype.toUTCString serializes year -12345 to "-12345"'); 32: assert.sameValue(negative6DigitYearToUTCString.split(' ')[3], '-123456', 33: 'Date.prototype.toUTCString serializes year -123456 to "-123456"'); 34:
Expressions_compoundAssignment("language/expressions/compound-assignment/mod-whitespace.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L13245
language/expressions/compound-assignment/mod-whitespace.js Jint.Runtime.JavaScriptException: U+0009 (expression) Expected SameValue(«0», «-0») to be true ---> Error: U+0009 (expression) Expected SameValue(«0», «-0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at language/expressions/compound-assignment/mod-whitespace.js:17:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 801 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 96 01: "use strict"; 02: // Copyright 2009 the Sputnik authors. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: info: | 07: White Space and Line Terminator between LeftHandSideExpression and "@=" 08: or between "@=" and AssignmentExpression are allowed 09: es5id: 11.13.2_A1_T3 10: esid: sec-assignment-operators 11: description: Checking by using eval, check operator is x %= y 12: ---*/ 13: 14: var x; 15: 16: x = -1; 17: assert.sameValue(x %= -1, -0, 'U+0009 (expression)'); 18: assert.sameValue(x, -0, 'U+0009 (side effect)'); 19: 20: x = -1; 21: assert.sameValue(x�%=�-1, -0, 'U+000B (expression)'); 22: assert.sameValue(x, -0, 'U+000B (side effect)'); 23: 24: x = -1; 25: assert.sameValue(x %= -1, -0, 'U+000C (expression)'); 26: assert.sameValue(x, -0, 'U+000C (side effect)'); 27: 28: x = -1; 29: assert.sameValue(x %= -1, -0, 'U+0020 (expression)'); 30: assert.sameValue(x, -0, 'U+0020 (side effect)'); 31: 32: x = -1; 33: assert.sameValue(x %= -1, -0, 'U+00A0 (expression)'); 34: assert.sameValue(x, -0, 'U+00A0 (side effect)'); 35: 36: x = -1; 37: assert.sameValue(x 38: %= 39: -1, -0, 'U+000A (expression)'); 40: assert.sameValue(x, -0, 'U+000A (side effect)'); 41: 42: x = -1; 43: assert.sameValue(x %= -1, -0, 'U+000D (expression)'); 44: assert.sameValue(x, -0, 'U+000D (side effect)'); 45: 46: x = -1; 47: assert.sameValue(x
%=
-1, -0, 'U+2028 (expression)'); 48: assert.sameValue(x, -0, 'U+2028 (side effect)'); 49: 50: x = -1; 51: assert.sameValue(x
%=
-1, -0, 'U+2029 (expression)'); 52: assert.sameValue(x, -0, 'U+2029 (side effect)'); 53: 54: x = -1; 55: assert.sameValue(x �   56: 

%= �   57: 

-1, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (expression)'); 58: assert.sameValue(x, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (side effect)'); 59:
Expressions_compoundAssignment("language/expressions/compound-assignment/mod-whitespace.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L13245
language/expressions/compound-assignment/mod-whitespace.js Jint.Runtime.JavaScriptException: U+0009 (expression) Expected SameValue(«0», «-0») to be true ---> Error: U+0009 (expression) Expected SameValue(«0», «-0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at language/expressions/compound-assignment/mod-whitespace.js:16:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 391 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 801 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 383 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 99 at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 96 01: // Copyright 2009 the Sputnik authors. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: info: | 06: White Space and Line Terminator between LeftHandSideExpression and "@=" 07: or between "@=" and AssignmentExpression are allowed 08: es5id: 11.13.2_A1_T3 09: esid: sec-assignment-operators 10: description: Checking by using eval, check operator is x %= y 11: ---*/ 12: 13: var x; 14: 15: x = -1; 16: assert.sameValue(x %= -1, -0, 'U+0009 (expression)'); 17: assert.sameValue(x, -0, 'U+0009 (side effect)'); 18: 19: x = -1; 20: assert.sameValue(x�%=�-1, -0, 'U+000B (expression)'); 21: assert.sameValue(x, -0, 'U+000B (side effect)'); 22: 23: x = -1; 24: assert.sameValue(x %= -1, -0, 'U+000C (expression)'); 25: assert.sameValue(x, -0, 'U+000C (side effect)'); 26: 27: x = -1; 28: assert.sameValue(x %= -1, -0, 'U+0020 (expression)'); 29: assert.sameValue(x, -0, 'U+0020 (side effect)'); 30: 31: x = -1; 32: assert.sameValue(x %= -1, -0, 'U+00A0 (expression)'); 33: assert.sameValue(x, -0, 'U+00A0 (side effect)'); 34: 35: x = -1; 36: assert.sameValue(x 37: %= 38: -1, -0, 'U+000A (expression)'); 39: assert.sameValue(x, -0, 'U+000A (side effect)'); 40: 41: x = -1; 42: assert.sameValue(x %= -1, -0, 'U+000D (expression)'); 43: assert.sameValue(x, -0, 'U+000D (side effect)'); 44: 45: x = -1; 46: assert.sameValue(x
%=
-1, -0, 'U+2028 (expression)'); 47: assert.sameValue(x, -0, 'U+2028 (side effect)'); 48: 49: x = -1; 50: assert.sameValue(x
%=
-1, -0, 'U+2029 (expression)'); 51: assert.sameValue(x, -0, 'U+2029 (side effect)'); 52: 53: x = -1; 54: assert.sameValue(x �   55: 

%= �   56: 

-1, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (expression)'); 57: assert.sameValue(x, -0, 'U+0009U+000BU+000CU+0020U+00A0U+000AU+000DU+2028U+2029 (side effect)'); 58: