Skip to content

Source generator for prototypes #879

Source generator for prototypes

Source generator for prototypes #879

Triggered via pull request November 25, 2023 13:33
Status Failure
Total duration 5m 31s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 errors
macos
Process completed with exit code 1.
Jint.Tests.SourceGenerators.ObjectGeneratorTests.MathInstance
VerifyException : Directory: /home/runner/work/jint/jint/Jint.Tests.SourceGenerators/Snapshots New: - Received: ObjectGeneratorTests.MathInstance#Attributes.g.received.cs Verified: ObjectGeneratorTests.MathInstance#Attributes.g.verified.cs - Received: ObjectGeneratorTests.MathInstance#MathInstance.g.received.cs Verified: ObjectGeneratorTests.MathInstance#MathInstance.g.verified.cs FileContent: New: Received: ObjectGeneratorTests.MathInstance#Attributes.g.received.cs //HintName: Attributes.g.cs namespace Jint; [System.AttributeUsage(System.AttributeTargets.Class)] internal class JsObjectAttribute : System.Attribute { } [System.AttributeUsage(System.AttributeTargets.Method)] internal class JsFunctionAttribute : System.Attribute { public string Name { get; set; } public int Length { get; set; } } [System.AttributeUsage(System.AttributeTargets.Property)] internal class JsPropertyAttribute : System.Attribute { public string Name { get; set; } public Jint.Runtime.Descriptors.PropertyFlag Flags { get; set; } } Received: ObjectGeneratorTests.MathInstance#MathInstance.g.received.cs //HintName: MathInstance.g.cs #nullable enable #pragma warning disable CS0219 using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using Jint.HighPerformance; using Jint.Native.Function; using Jint.Native.Object; using Jint.Runtime; using Jint.Runtime.Descriptors; using Jint.Runtime.Interop; namespace Jint.Native.Math; partial class MathInstance { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __E_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __E_property { [DebuggerStepThrough] get { return __E_property_backingField ??= new PropertyDescriptor(MathInstance.E, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __LN10_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __LN10_property { [DebuggerStepThrough] get { return __LN10_property_backingField ??= new PropertyDescriptor(MathInstance.LN10, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __LN2_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __LN2_property { [DebuggerStepThrough] get { return __LN2_property_backingField ??= new PropertyDescriptor(MathInstance.LN2, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __LOG2E_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __LOG2E_property { [DebuggerStepThrough] get { return __LOG2E_property_backingField ??= new PropertyDescriptor(MathInstance.LOG2E, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __LOG10E_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __LOG10E_property { [DebuggerStepThrough] get { return __LOG10E_property_backingField ??= new PropertyDescriptor(MathInstance.LOG10E, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __PI_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __PI_property { [DebuggerStepThrough] get { return __PI_property_backingField ??= new PropertyDescriptor(MathInstance.PI, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __SQRT1_2_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __SQRT1_2_property { [DebuggerStepThrough] get { return __SQRT1_2_property_backingField ??=
Jint.Tests.SourceGenerators.ObjectGeneratorTests.ArrayPrototype
VerifyException : Directory: /home/runner/work/jint/jint/Jint.Tests.SourceGenerators/Snapshots New: - Received: ObjectGeneratorTests.ArrayPrototype#Attributes.g.received.cs Verified: ObjectGeneratorTests.ArrayPrototype#Attributes.g.verified.cs FileContent: New: Received: ObjectGeneratorTests.ArrayPrototype#Attributes.g.received.cs //HintName: Attributes.g.cs namespace Jint; [System.AttributeUsage(System.AttributeTargets.Class)] internal class JsObjectAttribute : System.Attribute { } [System.AttributeUsage(System.AttributeTargets.Method)] internal class JsFunctionAttribute : System.Attribute { public string Name { get; set; } public int Length { get; set; } } [System.AttributeUsage(System.AttributeTargets.Property)] internal class JsPropertyAttribute : System.Attribute { public string Name { get; set; } public Jint.Runtime.Descriptors.PropertyFlag Flags { get; set; } }
Array_prototype_every("built-ins/Array/prototype/every/15.4.4.16-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L1110
built-ins/Array/prototype/every/15.4.4.16-1-10.js Jint.Runtime.JavaScriptException: Array.prototype.every.call(Math, callbackfn) Expected SameValue(«true», «false») to be true ---> Error: Array.prototype.every.call(Math, callbackfn) Expected SameValue(«true», «false») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/every/15.4.4.16-1-10.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 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 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 78 01: // Copyright (c) 2012 Ecma International. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-array.prototype.every 06: description: Array.prototype.every applied to the Math object 07: ---*/ 08: 09: function callbackfn(val, idx, obj) { 10: return ('[object Math]' !== Object.prototype.toString.call(obj)); 11: } 12: 13: Math.length = 1; 14: Math[0] = 1; 15: 16: assert.sameValue(Array.prototype.every.call(Math, callbackfn), false, 'Array.prototype.every.call(Math, callbackfn)'); 17:
Array_prototype_every("built-ins/Array/prototype/every/15.4.4.16-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L1110
built-ins/Array/prototype/every/15.4.4.16-1-10.js Jint.Runtime.JavaScriptException: Array.prototype.every.call(Math, callbackfn) Expected SameValue(«true», «false») to be true ---> Error: Array.prototype.every.call(Math, callbackfn) Expected SameValue(«true», «false») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/every/15.4.4.16-1-10.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 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 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 78 01: "use strict"; 02: // Copyright (c) 2012 Ecma International. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-array.prototype.every 07: description: Array.prototype.every applied to the Math object 08: ---*/ 09: 10: function callbackfn(val, idx, obj) { 11: return ('[object Math]' !== Object.prototype.toString.call(obj)); 12: } 13: 14: Math.length = 1; 15: Math[0] = 1; 16: 17: assert.sameValue(Array.prototype.every.call(Math, callbackfn), false, 'Array.prototype.every.call(Math, callbackfn)'); 18:
Array_prototype_filter("built-ins/Array/prototype/filter/15.4.4.20-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L1634
built-ins/Array/prototype/filter/15.4.4.20-1-10.js Jint.Runtime.JavaScriptException: newArr[0] Expected SameValue(«undefined», «1») to be true ---> Error: newArr[0] Expected SameValue(«undefined», «1») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/filter/15.4.4.20-1-10.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 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 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 78 01: // Copyright (c) 2012 Ecma International. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-array.prototype.filter 06: description: Array.prototype.filter applied to the Math object 07: ---*/ 08: 09: function callbackfn(val, idx, obj) { 10: return '[object Math]' === Object.prototype.toString.call(obj); 11: } 12: 13: Math.length = 1; 14: Math[0] = 1; 15: var newArr = Array.prototype.filter.call(Math, callbackfn); 16: 17: assert.sameValue(newArr[0], 1, 'newArr[0]'); 18:
Array_prototype_filter("built-ins/Array/prototype/filter/15.4.4.20-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L1634
built-ins/Array/prototype/filter/15.4.4.20-1-10.js Jint.Runtime.JavaScriptException: newArr[0] Expected SameValue(«undefined», «1») to be true ---> Error: newArr[0] Expected SameValue(«undefined», «1») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/filter/15.4.4.20-1-10.js:18:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 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 78 01: "use strict"; 02: // Copyright (c) 2012 Ecma International. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-array.prototype.filter 07: description: Array.prototype.filter applied to the Math object 08: ---*/ 09: 10: function callbackfn(val, idx, obj) { 11: return '[object Math]' === Object.prototype.toString.call(obj); 12: } 13: 14: Math.length = 1; 15: Math[0] = 1; 16: var newArr = Array.prototype.filter.call(Math, callbackfn); 17: 18: assert.sameValue(newArr[0], 1, 'newArr[0]'); 19:
Array_prototype_forEach("built-ins/Array/prototype/forEach/15.4.4.18-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L2278
built-ins/Array/prototype/forEach/15.4.4.18-1-10.js Jint.Runtime.JavaScriptException: result !== true ---> Error: result !== true at assert (mustBeTrue, message) harness/assert.js:18:9 at built-ins/Array/prototype/forEach/15.4.4.18-1-10.js:19:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 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 78 01: // Copyright (c) 2012 Ecma International. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-array.prototype.foreach 06: description: Array.prototype.forEach applied to the Math object 07: ---*/ 08: 09: var result = false; 10: 11: function callbackfn(val, idx, obj) { 12: result = ('[object Math]' === Object.prototype.toString.call(obj)); 13: } 14: 15: Math.length = 1; 16: Math[0] = 1; 17: Array.prototype.forEach.call(Math, callbackfn); 18: 19: assert(result, 'result !== true'); 20:
Array_prototype_forEach("built-ins/Array/prototype/forEach/15.4.4.18-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L2278
built-ins/Array/prototype/forEach/15.4.4.18-1-10.js Jint.Runtime.JavaScriptException: result !== true ---> Error: result !== true at assert (mustBeTrue, message) harness/assert.js:18:9 at built-ins/Array/prototype/forEach/15.4.4.18-1-10.js:20:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 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 78 01: "use strict"; 02: // Copyright (c) 2012 Ecma International. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-array.prototype.foreach 07: description: Array.prototype.forEach applied to the Math object 08: ---*/ 09: 10: var result = false; 11: 12: function callbackfn(val, idx, obj) { 13: result = ('[object Math]' === Object.prototype.toString.call(obj)); 14: } 15: 16: Math.length = 1; 17: Math[0] = 1; 18: Array.prototype.forEach.call(Math, callbackfn); 19: 20: assert(result, 'result !== true'); 21:
Array_prototype_indexOf("built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L2735
built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js Jint.Runtime.JavaScriptException: Array.prototype.indexOf.call(Math, true) Expected SameValue(«-1», «1») to be true ---> Error: Array.prototype.indexOf.call(Math, true) Expected SameValue(«-1», «1») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js:12:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 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 78 01: // Copyright (c) 2012 Ecma International. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-array.prototype.indexof 06: description: Array.prototype.indexOf applied to the Math object 07: ---*/ 08: 09: Math[1] = true; 10: Math.length = 2; 11: 12: assert.sameValue(Array.prototype.indexOf.call(Math, true), 1, 'Array.prototype.indexOf.call(Math, true)'); 13:
Array_prototype_indexOf("built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L2735
built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js Jint.Runtime.JavaScriptException: Array.prototype.indexOf.call(Math, true) Expected SameValue(«-1», «1») to be true ---> Error: Array.prototype.indexOf.call(Math, true) Expected SameValue(«-1», «1») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js:13:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 426 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 789 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 381 at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 97 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 78 01: "use strict"; 02: // Copyright (c) 2012 Ecma International. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-array.prototype.indexof 07: description: Array.prototype.indexOf applied to the Math object 08: ---*/ 09: 10: Math[1] = true; 11: Math.length = 2; 12: 13: assert.sameValue(Array.prototype.indexOf.call(Math, true), 1, 'Array.prototype.indexOf.call(Math, true)'); 14:
Jint.Tests.SourceGenerators.ObjectGeneratorTests.MathInstance
VerifyException : Directory: D:\a\jint\jint\Jint.Tests.SourceGenerators\Snapshots New: - Received: ObjectGeneratorTests.MathInstance#Attributes.g.received.cs Verified: ObjectGeneratorTests.MathInstance#Attributes.g.verified.cs - Received: ObjectGeneratorTests.MathInstance#MathInstance.g.received.cs Verified: ObjectGeneratorTests.MathInstance#MathInstance.g.verified.cs FileContent: New: Received: ObjectGeneratorTests.MathInstance#Attributes.g.received.cs //HintName: Attributes.g.cs namespace Jint; [System.AttributeUsage(System.AttributeTargets.Class)] internal class JsObjectAttribute : System.Attribute { } [System.AttributeUsage(System.AttributeTargets.Method)] internal class JsFunctionAttribute : System.Attribute { public string Name { get; set; } public int Length { get; set; } } [System.AttributeUsage(System.AttributeTargets.Property)] internal class JsPropertyAttribute : System.Attribute { public string Name { get; set; } public Jint.Runtime.Descriptors.PropertyFlag Flags { get; set; } } Received: ObjectGeneratorTests.MathInstance#MathInstance.g.received.cs //HintName: MathInstance.g.cs #nullable enable #pragma warning disable CS0219 using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using Jint.HighPerformance; using Jint.Native.Function; using Jint.Native.Object; using Jint.Runtime; using Jint.Runtime.Descriptors; using Jint.Runtime.Interop; namespace Jint.Native.Math; partial class MathInstance { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __E_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __E_property { [DebuggerStepThrough] get { return __E_property_backingField ??= new PropertyDescriptor(MathInstance.E, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __LN10_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __LN10_property { [DebuggerStepThrough] get { return __LN10_property_backingField ??= new PropertyDescriptor(MathInstance.LN10, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __LN2_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __LN2_property { [DebuggerStepThrough] get { return __LN2_property_backingField ??= new PropertyDescriptor(MathInstance.LN2, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __LOG2E_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __LOG2E_property { [DebuggerStepThrough] get { return __LOG2E_property_backingField ??= new PropertyDescriptor(MathInstance.LOG2E, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __LOG10E_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __LOG10E_property { [DebuggerStepThrough] get { return __LOG10E_property_backingField ??= new PropertyDescriptor(MathInstance.LOG10E, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __PI_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __PI_property { [DebuggerStepThrough] get { return __PI_property_backingField ??= new PropertyDescriptor(MathInstance.PI, PropertyFlag.AllForbidden); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor? __SQRT1_2_property_backingField; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PropertyDescriptor __SQRT1_2_property { [DebuggerStepThrough] get { return __SQRT1_2_property_backingField ??= new Property
Jint.Tests.SourceGenerators.ObjectGeneratorTests.ArrayPrototype
VerifyException : Directory: D:\a\jint\jint\Jint.Tests.SourceGenerators\Snapshots New: - Received: ObjectGeneratorTests.ArrayPrototype#Attributes.g.received.cs Verified: ObjectGeneratorTests.ArrayPrototype#Attributes.g.verified.cs FileContent: New: Received: ObjectGeneratorTests.ArrayPrototype#Attributes.g.received.cs //HintName: Attributes.g.cs namespace Jint; [System.AttributeUsage(System.AttributeTargets.Class)] internal class JsObjectAttribute : System.Attribute { } [System.AttributeUsage(System.AttributeTargets.Method)] internal class JsFunctionAttribute : System.Attribute { public string Name { get; set; } public int Length { get; set; } } [System.AttributeUsage(System.AttributeTargets.Property)] internal class JsPropertyAttribute : System.Attribute { public string Name { get; set; } public Jint.Runtime.Descriptors.PropertyFlag Flags { get; set; } }
Array_prototype_every("built-ins/Array/prototype/every/15.4.4.16-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L1110
built-ins/Array/prototype/every/15.4.4.16-1-10.js Jint.Runtime.JavaScriptException: Array.prototype.every.call(Math, callbackfn) Expected SameValue(«true», «false») to be true ---> Error: Array.prototype.every.call(Math, callbackfn) Expected SameValue(«true», «false») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/every/15.4.4.16-1-10.js:16: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) 2012 Ecma International. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-array.prototype.every 06: description: Array.prototype.every applied to the Math object 07: ---*/ 08: 09: function callbackfn(val, idx, obj) { 10: return ('[object Math]' !== Object.prototype.toString.call(obj)); 11: } 12: 13: Math.length = 1; 14: Math[0] = 1; 15: 16: assert.sameValue(Array.prototype.every.call(Math, callbackfn), false, 'Array.prototype.every.call(Math, callbackfn)'); 17:
Array_prototype_every("built-ins/Array/prototype/every/15.4.4.16-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L1110
built-ins/Array/prototype/every/15.4.4.16-1-10.js Jint.Runtime.JavaScriptException: Array.prototype.every.call(Math, callbackfn) Expected SameValue(«true», «false») to be true ---> Error: Array.prototype.every.call(Math, callbackfn) Expected SameValue(«true», «false») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/every/15.4.4.16-1-10.js:17: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) 2012 Ecma International. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-array.prototype.every 07: description: Array.prototype.every applied to the Math object 08: ---*/ 09: 10: function callbackfn(val, idx, obj) { 11: return ('[object Math]' !== Object.prototype.toString.call(obj)); 12: } 13: 14: Math.length = 1; 15: Math[0] = 1; 16: 17: assert.sameValue(Array.prototype.every.call(Math, callbackfn), false, 'Array.prototype.every.call(Math, callbackfn)'); 18:
Array_prototype_filter("built-ins/Array/prototype/filter/15.4.4.20-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L1634
built-ins/Array/prototype/filter/15.4.4.20-1-10.js Jint.Runtime.JavaScriptException: newArr[0] Expected SameValue(«undefined», «1») to be true ---> Error: newArr[0] Expected SameValue(«undefined», «1») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/filter/15.4.4.20-1-10.js:18: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) 2012 Ecma International. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-array.prototype.filter 07: description: Array.prototype.filter applied to the Math object 08: ---*/ 09: 10: function callbackfn(val, idx, obj) { 11: return '[object Math]' === Object.prototype.toString.call(obj); 12: } 13: 14: Math.length = 1; 15: Math[0] = 1; 16: var newArr = Array.prototype.filter.call(Math, callbackfn); 17: 18: assert.sameValue(newArr[0], 1, 'newArr[0]'); 19:
Array_prototype_filter("built-ins/Array/prototype/filter/15.4.4.20-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L1634
built-ins/Array/prototype/filter/15.4.4.20-1-10.js Jint.Runtime.JavaScriptException: newArr[0] Expected SameValue(«undefined», «1») to be true ---> Error: newArr[0] Expected SameValue(«undefined», «1») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/filter/15.4.4.20-1-10.js:17: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) 2012 Ecma International. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-array.prototype.filter 06: description: Array.prototype.filter applied to the Math object 07: ---*/ 08: 09: function callbackfn(val, idx, obj) { 10: return '[object Math]' === Object.prototype.toString.call(obj); 11: } 12: 13: Math.length = 1; 14: Math[0] = 1; 15: var newArr = Array.prototype.filter.call(Math, callbackfn); 16: 17: assert.sameValue(newArr[0], 1, 'newArr[0]'); 18:
Array_prototype_forEach("built-ins/Array/prototype/forEach/15.4.4.18-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L2278
built-ins/Array/prototype/forEach/15.4.4.18-1-10.js Jint.Runtime.JavaScriptException: result !== true ---> Error: result !== true at assert (mustBeTrue, message) harness/assert.js:18:9 at built-ins/Array/prototype/forEach/15.4.4.18-1-10.js:19: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) 2012 Ecma International. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-array.prototype.foreach 06: description: Array.prototype.forEach applied to the Math object 07: ---*/ 08: 09: var result = false; 10: 11: function callbackfn(val, idx, obj) { 12: result = ('[object Math]' === Object.prototype.toString.call(obj)); 13: } 14: 15: Math.length = 1; 16: Math[0] = 1; 17: Array.prototype.forEach.call(Math, callbackfn); 18: 19: assert(result, 'result !== true'); 20:
Array_prototype_forEach("built-ins/Array/prototype/forEach/15.4.4.18-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L2278
built-ins/Array/prototype/forEach/15.4.4.18-1-10.js Jint.Runtime.JavaScriptException: result !== true ---> Error: result !== true at assert (mustBeTrue, message) harness/assert.js:18:9 at built-ins/Array/prototype/forEach/15.4.4.18-1-10.js:20: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) 2012 Ecma International. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-array.prototype.foreach 07: description: Array.prototype.forEach applied to the Math object 08: ---*/ 09: 10: var result = false; 11: 12: function callbackfn(val, idx, obj) { 13: result = ('[object Math]' === Object.prototype.toString.call(obj)); 14: } 15: 16: Math.length = 1; 17: Math[0] = 1; 18: Array.prototype.forEach.call(Math, callbackfn); 19: 20: assert(result, 'result !== true'); 21:
Array_prototype_indexOf("built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L2735
built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js Jint.Runtime.JavaScriptException: Array.prototype.indexOf.call(Math, true) Expected SameValue(«-1», «1») to be true ---> Error: Array.prototype.indexOf.call(Math, true) Expected SameValue(«-1», «1») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js:12: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) 2012 Ecma International. All rights reserved. 02: // This code is governed by the BSD license found in the LICENSE file. 03: 04: /*--- 05: esid: sec-array.prototype.indexof 06: description: Array.prototype.indexOf applied to the Math object 07: ---*/ 08: 09: Math[1] = true; 10: Math.length = 2; 11: 12: assert.sameValue(Array.prototype.indexOf.call(Math, true), 1, 'Array.prototype.indexOf.call(Math, true)'); 13:
Array_prototype_indexOf("built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L2735
built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js Jint.Runtime.JavaScriptException: Array.prototype.indexOf.call(Math, true) Expected SameValue(«-1», «1») to be true ---> Error: Array.prototype.indexOf.call(Math, true) Expected SameValue(«-1», «1») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js:13: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) 2012 Ecma International. All rights reserved. 03: // This code is governed by the BSD license found in the LICENSE file. 04: 05: /*--- 06: esid: sec-array.prototype.indexof 07: description: Array.prototype.indexOf applied to the Math object 08: ---*/ 09: 10: Math[1] = true; 11: Math.length = 2; 12: 13: assert.sameValue(Array.prototype.indexOf.call(Math, true), 1, 'Array.prototype.indexOf.call(Math, true)'); 14: