Skip to content

ES6 Generators

ES6 Generators #882

Triggered via pull request November 25, 2023 17:08
Status Failure
Total duration 5m 6s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 errors
Jint.Tests.Runtime.GeneratorTests.FunctionExpressions: Jint.Tests/Runtime/GeneratorTests.cs#L154
System.ArgumentException : Expected boolean but got Integer
Jint.Tests.Runtime.GeneratorTests.Basic: Jint.Tests/Runtime/GeneratorTests.cs#L134
System.ArgumentException : Expected boolean but got Integer
Jint.Tests.Runtime.GeneratorTests.Sending: Jint.Tests/Runtime/GeneratorTests.cs#L196
Assert.Equal() Failure: Values differ Expected: foo Actual: 5
Jint.Tests.Runtime.GeneratorTests.CorrectThisBinding: Jint.Tests/Runtime/GeneratorTests.cs#L174
System.ArgumentException : Expected boolean but got Integer
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:65:3 at language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:69:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 04: // - src/dstr-binding/default/arrow-function.template 05: /*--- 06: description: BindingElement with array binding pattern and initializer is used (arrow function expression) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: BindingElement : BindingPatternInitializer opt 43: 44: [...] 45: 2. If iteratorRecord.[[done]] is true, let v be undefined. 46: 3. If Initializer is present and v is undefined, then 47: a. Let defaultValue be the result of evaluating Initializer. 48: b. Let v be ? GetValue(defaultValue). 49: 4. Return the result of performing BindingInitialization of BindingPattern 50: with v and environment as the arguments. 51: 52: ---*/ 53: var first = 0; 54: var second = 0; 55: function* g() { 56: first += 1; 57: yield; 58: second += 1; 59: }; 60: 61: var callCount = 0; 62: var f; 63: f = ([[,] = g()]) => { 64: assert.sameValue(first, 1); 65: assert.sameValue(second, 0); 66: callCount = callCount + 1; 67: }; 68: 69: f([]); 70: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 71:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:64:3 at language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:68:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 03: // - src/dstr-binding/default/arrow-function.template 04: /*--- 05: description: BindingElement with array binding pattern and initializer is used (arrow function expression) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: BindingElement : BindingPatternInitializer opt 42: 43: [...] 44: 2. If iteratorRecord.[[done]] is true, let v be undefined. 45: 3. If Initializer is present and v is undefined, then 46: a. Let defaultValue be the result of evaluating Initializer. 47: b. Let v be ? GetValue(defaultValue). 48: 4. Return the result of performing BindingInitialization of BindingPattern 49: with v and environment as the arguments. 50: 51: ---*/ 52: var first = 0; 53: var second = 0; 54: function* g() { 55: first += 1; 56: yield; 57: second += 1; 58: }; 59: 60: var callCount = 0; 61: var f; 62: f = ([[,] = g()]) => { 63: assert.sameValue(first, 1); 64: assert.sameValue(second, 0); 65: callCount = callCount + 1; 66: }; 67: 68: f([]); 69: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 70:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elision.js:71:3 at language/expressions/arrow-function/dstr/ary-ptrn-elision.js:75:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elision.case 03: // - src/dstr-binding/default/arrow-function.template 04: /*--- 05: description: Elision advances iterator (arrow function expression) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: ArrayBindingPattern : [ Elision ] 42: 43: 1. Return the result of performing 44: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 45: as the argument. 46: 47: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 48: 49: Elision : , 50: 51: 1. If iteratorRecord.[[done]] is false, then 52: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 53: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 54: c. ReturnIfAbrupt(next). 55: d. If next is false, set iteratorRecord.[[done]] to true. 56: 2. Return NormalCompletion(empty). 57: 58: ---*/ 59: var first = 0; 60: var second = 0; 61: function* g() { 62: first += 1; 63: yield; 64: second += 1; 65: }; 66: 67: var callCount = 0; 68: var f; 69: f = ([,]) => { 70: assert.sameValue(first, 1); 71: assert.sameValue(second, 0); 72: callCount = callCount + 1; 73: }; 74: 75: f(g()); 76: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 77:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elision.js:72:3 at language/expressions/arrow-function/dstr/ary-ptrn-elision.js:76:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elision.case 04: // - src/dstr-binding/default/arrow-function.template 05: /*--- 06: description: Elision advances iterator (arrow function expression) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: ArrayBindingPattern : [ Elision ] 43: 44: 1. Return the result of performing 45: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 46: as the argument. 47: 48: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 49: 50: Elision : , 51: 52: 1. If iteratorRecord.[[done]] is false, then 53: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 54: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 55: c. ReturnIfAbrupt(next). 56: d. If next is false, set iteratorRecord.[[done]] to true. 57: 2. Return NormalCompletion(empty). 58: 59: ---*/ 60: var first = 0; 61: var second = 0; 62: function* g() { 63: first += 1; 64: yield; 65: second += 1; 66: }; 67: 68: var callCount = 0; 69: var f; 70: f = ([,]) => { 71: assert.sameValue(first, 1); 72: assert.sameValue(second, 0); 73: callCount = callCount + 1; 74: }; 75: 76: f(g()); 77: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 78:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:64:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:68:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 03: // - src/dstr-binding/default/arrow-function-dflt.template 04: /*--- 05: description: BindingElement with array binding pattern and initializer is used (arrow function expression (default parameter)) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding, default-parameters] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: BindingElement : BindingPatternInitializer opt 42: 43: [...] 44: 2. If iteratorRecord.[[done]] is true, let v be undefined. 45: 3. If Initializer is present and v is undefined, then 46: a. Let defaultValue be the result of evaluating Initializer. 47: b. Let v be ? GetValue(defaultValue). 48: 4. Return the result of performing BindingInitialization of BindingPattern 49: with v and environment as the arguments. 50: 51: ---*/ 52: var first = 0; 53: var second = 0; 54: function* g() { 55: first += 1; 56: yield; 57: second += 1; 58: }; 59: 60: var callCount = 0; 61: var f; 62: f = ([[,] = g()] = []) => { 63: assert.sameValue(first, 1); 64: assert.sameValue(second, 0); 65: callCount = callCount + 1; 66: }; 67: 68: f(); 69: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 70:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:65:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:69:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /home/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /home/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 04: // - src/dstr-binding/default/arrow-function-dflt.template 05: /*--- 06: description: BindingElement with array binding pattern and initializer is used (arrow function expression (default parameter)) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding, default-parameters] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: BindingElement : BindingPatternInitializer opt 43: 44: [...] 45: 2. If iteratorRecord.[[done]] is true, let v be undefined. 46: 3. If Initializer is present and v is undefined, then 47: a. Let defaultValue be the result of evaluating Initializer. 48: b. Let v be ? GetValue(defaultValue). 49: 4. Return the result of performing BindingInitialization of BindingPattern 50: with v and environment as the arguments. 51: 52: ---*/ 53: var first = 0; 54: var second = 0; 55: function* g() { 56: first += 1; 57: yield; 58: second += 1; 59: }; 60: 61: var callCount = 0; 62: var f; 63: f = ([[,] = g()] = []) => { 64: assert.sameValue(first, 1); 65: assert.sameValue(second, 0); 66: callCount = callCount + 1; 67: }; 68: 69: f(); 70: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 71:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:64:3 at language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:68:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 03: // - src/dstr-binding/default/arrow-function.template 04: /*--- 05: description: BindingElement with array binding pattern and initializer is used (arrow function expression) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: BindingElement : BindingPatternInitializer opt 42: 43: [...] 44: 2. If iteratorRecord.[[done]] is true, let v be undefined. 45: 3. If Initializer is present and v is undefined, then 46: a. Let defaultValue be the result of evaluating Initializer. 47: b. Let v be ? GetValue(defaultValue). 48: 4. Return the result of performing BindingInitialization of BindingPattern 49: with v and environment as the arguments. 50: 51: ---*/ 52: var first = 0; 53: var second = 0; 54: function* g() { 55: first += 1; 56: yield; 57: second += 1; 58: }; 59: 60: var callCount = 0; 61: var f; 62: f = ([[,] = g()]) => { 63: assert.sameValue(first, 1); 64: assert.sameValue(second, 0); 65: callCount = callCount + 1; 66: }; 67: 68: f([]); 69: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 70:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:65:3 at language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:69:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 04: // - src/dstr-binding/default/arrow-function.template 05: /*--- 06: description: BindingElement with array binding pattern and initializer is used (arrow function expression) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: BindingElement : BindingPatternInitializer opt 43: 44: [...] 45: 2. If iteratorRecord.[[done]] is true, let v be undefined. 46: 3. If Initializer is present and v is undefined, then 47: a. Let defaultValue be the result of evaluating Initializer. 48: b. Let v be ? GetValue(defaultValue). 49: 4. Return the result of performing BindingInitialization of BindingPattern 50: with v and environment as the arguments. 51: 52: ---*/ 53: var first = 0; 54: var second = 0; 55: function* g() { 56: first += 1; 57: yield; 58: second += 1; 59: }; 60: 61: var callCount = 0; 62: var f; 63: f = ([[,] = g()]) => { 64: assert.sameValue(first, 1); 65: assert.sameValue(second, 0); 66: callCount = callCount + 1; 67: }; 68: 69: f([]); 70: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 71:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elision.js:72:3 at language/expressions/arrow-function/dstr/ary-ptrn-elision.js:76:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elision.case 04: // - src/dstr-binding/default/arrow-function.template 05: /*--- 06: description: Elision advances iterator (arrow function expression) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: ArrayBindingPattern : [ Elision ] 43: 44: 1. Return the result of performing 45: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 46: as the argument. 47: 48: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 49: 50: Elision : , 51: 52: 1. If iteratorRecord.[[done]] is false, then 53: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 54: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 55: c. ReturnIfAbrupt(next). 56: d. If next is false, set iteratorRecord.[[done]] to true. 57: 2. Return NormalCompletion(empty). 58: 59: ---*/ 60: var first = 0; 61: var second = 0; 62: function* g() { 63: first += 1; 64: yield; 65: second += 1; 66: }; 67: 68: var callCount = 0; 69: var f; 70: f = ([,]) => { 71: assert.sameValue(first, 1); 72: assert.sameValue(second, 0); 73: callCount = callCount + 1; 74: }; 75: 76: f(g()); 77: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 78:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elision.js:71:3 at language/expressions/arrow-function/dstr/ary-ptrn-elision.js:75:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elision.case 03: // - src/dstr-binding/default/arrow-function.template 04: /*--- 05: description: Elision advances iterator (arrow function expression) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: ArrayBindingPattern : [ Elision ] 42: 43: 1. Return the result of performing 44: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 45: as the argument. 46: 47: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 48: 49: Elision : , 50: 51: 1. If iteratorRecord.[[done]] is false, then 52: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 53: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 54: c. ReturnIfAbrupt(next). 55: d. If next is false, set iteratorRecord.[[done]] to true. 56: 2. Return NormalCompletion(empty). 57: 58: ---*/ 59: var first = 0; 60: var second = 0; 61: function* g() { 62: first += 1; 63: yield; 64: second += 1; 65: }; 66: 67: var callCount = 0; 68: var f; 69: f = ([,]) => { 70: assert.sameValue(first, 1); 71: assert.sameValue(second, 0); 72: callCount = callCount + 1; 73: }; 74: 75: f(g()); 76: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 77:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:64:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:68:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 03: // - src/dstr-binding/default/arrow-function-dflt.template 04: /*--- 05: description: BindingElement with array binding pattern and initializer is used (arrow function expression (default parameter)) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding, default-parameters] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: BindingElement : BindingPatternInitializer opt 42: 43: [...] 44: 2. If iteratorRecord.[[done]] is true, let v be undefined. 45: 3. If Initializer is present and v is undefined, then 46: a. Let defaultValue be the result of evaluating Initializer. 47: b. Let v be ? GetValue(defaultValue). 48: 4. Return the result of performing BindingInitialization of BindingPattern 49: with v and environment as the arguments. 50: 51: ---*/ 52: var first = 0; 53: var second = 0; 54: function* g() { 55: first += 1; 56: yield; 57: second += 1; 58: }; 59: 60: var callCount = 0; 61: var f; 62: f = ([[,] = g()] = []) => { 63: assert.sameValue(first, 1); 64: assert.sameValue(second, 0); 65: callCount = callCount + 1; 66: }; 67: 68: f(); 69: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 70:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:65:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:69:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 04: // - src/dstr-binding/default/arrow-function-dflt.template 05: /*--- 06: description: BindingElement with array binding pattern and initializer is used (arrow function expression (default parameter)) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding, default-parameters] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: BindingElement : BindingPatternInitializer opt 43: 44: [...] 45: 2. If iteratorRecord.[[done]] is true, let v be undefined. 46: 3. If Initializer is present and v is undefined, then 47: a. Let defaultValue be the result of evaluating Initializer. 48: b. Let v be ? GetValue(defaultValue). 49: 4. Return the result of performing BindingInitialization of BindingPattern 50: with v and environment as the arguments. 51: 52: ---*/ 53: var first = 0; 54: var second = 0; 55: function* g() { 56: first += 1; 57: yield; 58: second += 1; 59: }; 60: 61: var callCount = 0; 62: var f; 63: f = ([[,] = g()] = []) => { 64: assert.sameValue(first, 1); 65: assert.sameValue(second, 0); 66: callCount = callCount + 1; 67: }; 68: 69: f(); 70: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 71:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js:71:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js:75:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elision.case 03: // - src/dstr-binding/default/arrow-function-dflt.template 04: /*--- 05: description: Elision advances iterator (arrow function expression (default parameter)) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding, default-parameters] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: ArrayBindingPattern : [ Elision ] 42: 43: 1. Return the result of performing 44: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 45: as the argument. 46: 47: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 48: 49: Elision : , 50: 51: 1. If iteratorRecord.[[done]] is false, then 52: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 53: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 54: c. ReturnIfAbrupt(next). 55: d. If next is false, set iteratorRecord.[[done]] to true. 56: 2. Return NormalCompletion(empty). 57: 58: ---*/ 59: var first = 0; 60: var second = 0; 61: function* g() { 62: first += 1; 63: yield; 64: second += 1; 65: }; 66: 67: var callCount = 0; 68: var f; 69: f = ([,] = g()) => { 70: assert.sameValue(first, 1); 71: assert.sameValue(second, 0); 72: callCount = callCount + 1; 73: }; 74: 75: f(); 76: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 77:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js:72:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js:76:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elision.case 04: // - src/dstr-binding/default/arrow-function-dflt.template 05: /*--- 06: description: Elision advances iterator (arrow function expression (default parameter)) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding, default-parameters] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: ArrayBindingPattern : [ Elision ] 43: 44: 1. Return the result of performing 45: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 46: as the argument. 47: 48: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 49: 50: Elision : , 51: 52: 1. If iteratorRecord.[[done]] is false, then 53: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 54: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 55: c. ReturnIfAbrupt(next). 56: d. If next is false, set iteratorRecord.[[done]] to true. 57: 2. Return NormalCompletion(empty). 58: 59: ---*/ 60: var first = 0; 61: var second = 0; 62: function* g() { 63: first += 1; 64: yield; 65: second += 1; 66: }; 67: 68: var callCount = 0; 69: var f; 70: f = ([,] = g()) => { 71: assert.sameValue(first, 1); 72: assert.sameValue(second, 0); 73: callCount = callCount + 1; 74: }; 75: 76: f(); 77: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 78:
Expressions_assignment_dstr("language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L3579
language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js Jint.Runtime.JavaScriptException ---> Error at next language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js:44:10 at language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js:60:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-assignment/array-elem-iter-rtrn-close-err.case 03: // - src/dstr-assignment/default/assignment-expr.template 04: /*--- 05: description: IteratorClose is called when reference evaluation produces a "return" completion (AssignmentExpression) 06: esid: sec-variable-statement-runtime-semantics-evaluation 07: features: [Symbol.iterator, generators, destructuring-binding] 08: flags: [generated] 09: info: | 10: VariableDeclaration : BindingPattern Initializer 11: 12: 1. Let rhs be the result of evaluating Initializer. 13: 2. Let rval be GetValue(rhs). 14: 3. ReturnIfAbrupt(rval). 15: 4. Return the result of performing BindingInitialization for 16: BindingPattern passing rval and undefined as arguments. 17: 18: ArrayAssignmentPattern : [ AssignmentElementList ] 19: 20: [...] 21: 5. If iteratorRecord.[[done]] is false, return IteratorClose(iterator, 22: result). 23: 6. Return result. 24: 25: 7.4.6 IteratorClose( iterator, completion ) 26: 27: [...] 28: 6. Let innerResult be Call(return, iterator, « »). 29: 7. If completion.[[type]] is throw, return Completion(completion). 30: 8. If innerResult.[[type]] is throw, return Completion(innerResult). 31: 32: ---*/ 33: var returnCount = 0; 34: var unreachable = 0; 35: var iterable = {}; 36: var iterator = { 37: return: function() { 38: returnCount += 1; 39: throw new Test262Error(); 40: } 41: }; 42: var iter; 43: iterable[Symbol.iterator] = function() { 44: return iterator; 45: }; 46: 47: function* g() { 48: 49: var result; 50: var vals = iterable; 51: 52: result = [ {}[ yield ] ] = vals; 53: 54: unreachable += 1; 55: 56: assert.sameValue(result, vals); 57: 58: } 59: iter = g(); 60: iter.next(); 61: assert.throws(Test262Error, function() { 62: iter.return(); 63: }); 64: 65: assert.sameValue(returnCount, 1); 66: assert.sameValue(unreachable, 0, 'Unreachable statement was not executed'); 67:
Expressions_assignment_dstr("language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L3579
language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js Jint.Runtime.JavaScriptException ---> Error at next language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js:45:10 at language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js:61:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 790 at Jint.Engine.Execute(Script script) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-assignment/array-elem-iter-rtrn-close-err.case 04: // - src/dstr-assignment/default/assignment-expr.template 05: /*--- 06: description: IteratorClose is called when reference evaluation produces a "return" completion (AssignmentExpression) 07: esid: sec-variable-statement-runtime-semantics-evaluation 08: features: [Symbol.iterator, generators, destructuring-binding] 09: flags: [generated] 10: info: | 11: VariableDeclaration : BindingPattern Initializer 12: 13: 1. Let rhs be the result of evaluating Initializer. 14: 2. Let rval be GetValue(rhs). 15: 3. ReturnIfAbrupt(rval). 16: 4. Return the result of performing BindingInitialization for 17: BindingPattern passing rval and undefined as arguments. 18: 19: ArrayAssignmentPattern : [ AssignmentElementList ] 20: 21: [...] 22: 5. If iteratorRecord.[[done]] is false, return IteratorClose(iterator, 23: result). 24: 6. Return result. 25: 26: 7.4.6 IteratorClose( iterator, completion ) 27: 28: [...] 29: 6. Let innerResult be Call(return, iterator, « »). 30: 7. If completion.[[type]] is throw, return Completion(completion). 31: 8. If innerResult.[[type]] is throw, return Completion(innerResult). 32: 33: ---*/ 34: var returnCount = 0; 35: var unreachable = 0; 36: var iterable = {}; 37: var iterator = { 38: return: function() { 39: returnCount += 1; 40: throw new Test262Error(); 41: } 42: }; 43: var iter; 44: iterable[Symbol.iterator] = function() { 45: return iterator; 46: }; 47: 48: function* g() { 49: 50: var result; 51: var vals = iterable; 52: 53: result = [ {}[ yield ] ] = vals; 54: 55: unreachable += 1; 56: 57: assert.sameValue(result, vals); 58: 59: } 60: iter = g(); 61: iter.next(); 62: assert.throws(Test262Error, function() { 63: iter.return(); 64: }); 65: 66: assert.sameValue(returnCount, 1); 67: assert.sameValue(unreachable, 0, 'Unreachable statement was not executed'); 68:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:65:3 at language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:69:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 04: // - src/dstr-binding/default/arrow-function.template 05: /*--- 06: description: BindingElement with array binding pattern and initializer is used (arrow function expression) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: BindingElement : BindingPatternInitializer opt 43: 44: [...] 45: 2. If iteratorRecord.[[done]] is true, let v be undefined. 46: 3. If Initializer is present and v is undefined, then 47: a. Let defaultValue be the result of evaluating Initializer. 48: b. Let v be ? GetValue(defaultValue). 49: 4. Return the result of performing BindingInitialization of BindingPattern 50: with v and environment as the arguments. 51: 52: ---*/ 53: var first = 0; 54: var second = 0; 55: function* g() { 56: first += 1; 57: yield; 58: second += 1; 59: }; 60: 61: var callCount = 0; 62: var f; 63: f = ([[,] = g()]) => { 64: assert.sameValue(first, 1); 65: assert.sameValue(second, 0); 66: callCount = callCount + 1; 67: }; 68: 69: f([]); 70: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 71:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:64:3 at language/expressions/arrow-function/dstr/ary-ptrn-elem-ary-elision-init.js:68:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 03: // - src/dstr-binding/default/arrow-function.template 04: /*--- 05: description: BindingElement with array binding pattern and initializer is used (arrow function expression) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: BindingElement : BindingPatternInitializer opt 42: 43: [...] 44: 2. If iteratorRecord.[[done]] is true, let v be undefined. 45: 3. If Initializer is present and v is undefined, then 46: a. Let defaultValue be the result of evaluating Initializer. 47: b. Let v be ? GetValue(defaultValue). 48: 4. Return the result of performing BindingInitialization of BindingPattern 49: with v and environment as the arguments. 50: 51: ---*/ 52: var first = 0; 53: var second = 0; 54: function* g() { 55: first += 1; 56: yield; 57: second += 1; 58: }; 59: 60: var callCount = 0; 61: var f; 62: f = ([[,] = g()]) => { 63: assert.sameValue(first, 1); 64: assert.sameValue(second, 0); 65: callCount = callCount + 1; 66: }; 67: 68: f([]); 69: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 70:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elision.js:71:3 at language/expressions/arrow-function/dstr/ary-ptrn-elision.js:75:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elision.case 03: // - src/dstr-binding/default/arrow-function.template 04: /*--- 05: description: Elision advances iterator (arrow function expression) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: ArrayBindingPattern : [ Elision ] 42: 43: 1. Return the result of performing 44: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 45: as the argument. 46: 47: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 48: 49: Elision : , 50: 51: 1. If iteratorRecord.[[done]] is false, then 52: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 53: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 54: c. ReturnIfAbrupt(next). 55: d. If next is false, set iteratorRecord.[[done]] to true. 56: 2. Return NormalCompletion(empty). 57: 58: ---*/ 59: var first = 0; 60: var second = 0; 61: function* g() { 62: first += 1; 63: yield; 64: second += 1; 65: }; 66: 67: var callCount = 0; 68: var f; 69: f = ([,]) => { 70: assert.sameValue(first, 1); 71: assert.sameValue(second, 0); 72: callCount = callCount + 1; 73: }; 74: 75: f(g()); 76: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 77:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/ary-ptrn-elision.js:72:3 at language/expressions/arrow-function/dstr/ary-ptrn-elision.js:76:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elision.case 04: // - src/dstr-binding/default/arrow-function.template 05: /*--- 06: description: Elision advances iterator (arrow function expression) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: ArrayBindingPattern : [ Elision ] 43: 44: 1. Return the result of performing 45: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 46: as the argument. 47: 48: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 49: 50: Elision : , 51: 52: 1. If iteratorRecord.[[done]] is false, then 53: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 54: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 55: c. ReturnIfAbrupt(next). 56: d. If next is false, set iteratorRecord.[[done]] to true. 57: 2. Return NormalCompletion(empty). 58: 59: ---*/ 60: var first = 0; 61: var second = 0; 62: function* g() { 63: first += 1; 64: yield; 65: second += 1; 66: }; 67: 68: var callCount = 0; 69: var f; 70: f = ([,]) => { 71: assert.sameValue(first, 1); 72: assert.sameValue(second, 0); 73: callCount = callCount + 1; 74: }; 75: 76: f(g()); 77: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 78:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:64:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:68:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 03: // - src/dstr-binding/default/arrow-function-dflt.template 04: /*--- 05: description: BindingElement with array binding pattern and initializer is used (arrow function expression (default parameter)) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding, default-parameters] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: BindingElement : BindingPatternInitializer opt 42: 43: [...] 44: 2. If iteratorRecord.[[done]] is true, let v be undefined. 45: 3. If Initializer is present and v is undefined, then 46: a. Let defaultValue be the result of evaluating Initializer. 47: b. Let v be ? GetValue(defaultValue). 48: 4. Return the result of performing BindingInitialization of BindingPattern 49: with v and environment as the arguments. 50: 51: ---*/ 52: var first = 0; 53: var second = 0; 54: function* g() { 55: first += 1; 56: yield; 57: second += 1; 58: }; 59: 60: var callCount = 0; 61: var f; 62: f = ([[,] = g()] = []) => { 63: assert.sameValue(first, 1); 64: assert.sameValue(second, 0); 65: callCount = callCount + 1; 66: }; 67: 68: f(); 69: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 70:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:65:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-elision-init.js:69:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case 04: // - src/dstr-binding/default/arrow-function-dflt.template 05: /*--- 06: description: BindingElement with array binding pattern and initializer is used (arrow function expression (default parameter)) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding, default-parameters] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: BindingElement : BindingPatternInitializer opt 43: 44: [...] 45: 2. If iteratorRecord.[[done]] is true, let v be undefined. 46: 3. If Initializer is present and v is undefined, then 47: a. Let defaultValue be the result of evaluating Initializer. 48: b. Let v be ? GetValue(defaultValue). 49: 4. Return the result of performing BindingInitialization of BindingPattern 50: with v and environment as the arguments. 51: 52: ---*/ 53: var first = 0; 54: var second = 0; 55: function* g() { 56: first += 1; 57: yield; 58: second += 1; 59: }; 60: 61: var callCount = 0; 62: var f; 63: f = ([[,] = g()] = []) => { 64: assert.sameValue(first, 1); 65: assert.sameValue(second, 0); 66: callCount = callCount + 1; 67: }; 68: 69: f(); 70: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 71:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js:71:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js:75:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-binding/ary-ptrn-elision.case 03: // - src/dstr-binding/default/arrow-function-dflt.template 04: /*--- 05: description: Elision advances iterator (arrow function expression (default parameter)) 06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 07: features: [generators, destructuring-binding, default-parameters] 08: flags: [generated] 09: info: | 10: ArrowFunction : ArrowParameters => ConciseBody 11: 12: [...] 13: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 14: [...] 15: 16: 9.2.1 [[Call]] ( thisArgument, argumentsList) 17: 18: [...] 19: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 20: [...] 21: 22: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 23: 24: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 25: [...] 26: 27: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 28: 29: [...] 30: 23. Let iteratorRecord be Record {[[iterator]]: 31: CreateListIterator(argumentsList), [[done]]: false}. 32: 24. If hasDuplicates is true, then 33: [...] 34: 25. Else, 35: b. Let formalStatus be IteratorBindingInitialization for formals with 36: iteratorRecord and env as arguments. 37: [...] 38: 39: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 40: 41: ArrayBindingPattern : [ Elision ] 42: 43: 1. Return the result of performing 44: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 45: as the argument. 46: 47: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 48: 49: Elision : , 50: 51: 1. If iteratorRecord.[[done]] is false, then 52: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 53: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 54: c. ReturnIfAbrupt(next). 55: d. If next is false, set iteratorRecord.[[done]] to true. 56: 2. Return NormalCompletion(empty). 57: 58: ---*/ 59: var first = 0; 60: var second = 0; 61: function* g() { 62: first += 1; 63: yield; 64: second += 1; 65: }; 66: 67: var callCount = 0; 68: var f; 69: f = ([,] = g()) => { 70: assert.sameValue(first, 1); 71: assert.sameValue(second, 0); 72: callCount = callCount + 1; 73: }; 74: 75: f(); 76: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 77:
Expressions_arrowFunction_dstr("language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L2623
language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js Jint.Runtime.JavaScriptException: Expected SameValue(«1», «0») to be true ---> Error: Expected SameValue(«1», «0») to be true at assert.sameValue (actual, expected, message) harness/assert.js:49:9 at f (?) language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js:72:3 at language/expressions/arrow-function/dstr/dflt-ary-ptrn-elision.js:76:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-binding/ary-ptrn-elision.case 04: // - src/dstr-binding/default/arrow-function-dflt.template 05: /*--- 06: description: Elision advances iterator (arrow function expression (default parameter)) 07: esid: sec-arrow-function-definitions-runtime-semantics-evaluation 08: features: [generators, destructuring-binding, default-parameters] 09: flags: [generated] 10: info: | 11: ArrowFunction : ArrowParameters => ConciseBody 12: 13: [...] 14: 4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict). 15: [...] 16: 17: 9.2.1 [[Call]] ( thisArgument, argumentsList) 18: 19: [...] 20: 7. Let result be OrdinaryCallEvaluateBody(F, argumentsList). 21: [...] 22: 23: 9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList ) 24: 25: 1. Let status be FunctionDeclarationInstantiation(F, argumentsList). 26: [...] 27: 28: 9.2.12 FunctionDeclarationInstantiation(func, argumentsList) 29: 30: [...] 31: 23. Let iteratorRecord be Record {[[iterator]]: 32: CreateListIterator(argumentsList), [[done]]: false}. 33: 24. If hasDuplicates is true, then 34: [...] 35: 25. Else, 36: b. Let formalStatus be IteratorBindingInitialization for formals with 37: iteratorRecord and env as arguments. 38: [...] 39: 40: 13.3.3.6 Runtime Semantics: IteratorBindingInitialization 41: 42: ArrayBindingPattern : [ Elision ] 43: 44: 1. Return the result of performing 45: IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord 46: as the argument. 47: 48: 12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation 49: 50: Elision : , 51: 52: 1. If iteratorRecord.[[done]] is false, then 53: a. Let next be IteratorStep(iteratorRecord.[[iterator]]). 54: b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. 55: c. ReturnIfAbrupt(next). 56: d. If next is false, set iteratorRecord.[[done]] to true. 57: 2. Return NormalCompletion(empty). 58: 59: ---*/ 60: var first = 0; 61: var second = 0; 62: function* g() { 63: first += 1; 64: yield; 65: second += 1; 66: }; 67: 68: var callCount = 0; 69: var f; 70: f = ([,] = g()) => { 71: assert.sameValue(first, 1); 72: assert.sameValue(second, 0); 73: callCount = callCount + 1; 74: }; 75: 76: f(); 77: assert.sameValue(callCount, 1, 'arrow function invoked exactly once'); 78:
Expressions_assignment_dstr("language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L3579
language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js Jint.Runtime.JavaScriptException ---> Error at next language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js:44:10 at language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js:60:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 02: // - src/dstr-assignment/array-elem-iter-rtrn-close-err.case 03: // - src/dstr-assignment/default/assignment-expr.template 04: /*--- 05: description: IteratorClose is called when reference evaluation produces a "return" completion (AssignmentExpression) 06: esid: sec-variable-statement-runtime-semantics-evaluation 07: features: [Symbol.iterator, generators, destructuring-binding] 08: flags: [generated] 09: info: | 10: VariableDeclaration : BindingPattern Initializer 11: 12: 1. Let rhs be the result of evaluating Initializer. 13: 2. Let rval be GetValue(rhs). 14: 3. ReturnIfAbrupt(rval). 15: 4. Return the result of performing BindingInitialization for 16: BindingPattern passing rval and undefined as arguments. 17: 18: ArrayAssignmentPattern : [ AssignmentElementList ] 19: 20: [...] 21: 5. If iteratorRecord.[[done]] is false, return IteratorClose(iterator, 22: result). 23: 6. Return result. 24: 25: 7.4.6 IteratorClose( iterator, completion ) 26: 27: [...] 28: 6. Let innerResult be Call(return, iterator, « »). 29: 7. If completion.[[type]] is throw, return Completion(completion). 30: 8. If innerResult.[[type]] is throw, return Completion(innerResult). 31: 32: ---*/ 33: var returnCount = 0; 34: var unreachable = 0; 35: var iterable = {}; 36: var iterator = { 37: return: function() { 38: returnCount += 1; 39: throw new Test262Error(); 40: } 41: }; 42: var iter; 43: iterable[Symbol.iterator] = function() { 44: return iterator; 45: }; 46: 47: function* g() { 48: 49: var result; 50: var vals = iterable; 51: 52: result = [ {}[ yield ] ] = vals; 53: 54: unreachable += 1; 55: 56: assert.sameValue(result, vals); 57: 58: } 59: iter = g(); 60: iter.next(); 61: assert.throws(Test262Error, function() { 62: iter.return(); 63: }); 64: 65: assert.sameValue(returnCount, 1); 66: assert.sameValue(unreachable, 0, 'Unreachable statement was not executed'); 67:
Expressions_assignment_dstr("language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js": Jint.Tests.Test262/Generated/Tests262Harness.Tests.language.generated.cs#L3579
language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js Jint.Runtime.JavaScriptException ---> Error at next language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js:45:10 at language/expressions/assignment/dstr/array-elem-iter-rtrn-close-err.js:61:1 --- End of inner exception stack trace --- at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 427 at Jint.Engine.<>c__DisplayClass84_0.<Execute>b__0() in D:\a\jint\jint\Jint\Engine.cs:line 382 at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 790 at Jint.Engine.Execute(Script script) in D:\a\jint\jint\Jint\Engine.cs:line 382 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: // This file was procedurally generated from the following sources: 03: // - src/dstr-assignment/array-elem-iter-rtrn-close-err.case 04: // - src/dstr-assignment/default/assignment-expr.template 05: /*--- 06: description: IteratorClose is called when reference evaluation produces a "return" completion (AssignmentExpression) 07: esid: sec-variable-statement-runtime-semantics-evaluation 08: features: [Symbol.iterator, generators, destructuring-binding] 09: flags: [generated] 10: info: | 11: VariableDeclaration : BindingPattern Initializer 12: 13: 1. Let rhs be the result of evaluating Initializer. 14: 2. Let rval be GetValue(rhs). 15: 3. ReturnIfAbrupt(rval). 16: 4. Return the result of performing BindingInitialization for 17: BindingPattern passing rval and undefined as arguments. 18: 19: ArrayAssignmentPattern : [ AssignmentElementList ] 20: 21: [...] 22: 5. If iteratorRecord.[[done]] is false, return IteratorClose(iterator, 23: result). 24: 6. Return result. 25: 26: 7.4.6 IteratorClose( iterator, completion ) 27: 28: [...] 29: 6. Let innerResult be Call(return, iterator, « »). 30: 7. If completion.[[type]] is throw, return Completion(completion). 31: 8. If innerResult.[[type]] is throw, return Completion(innerResult). 32: 33: ---*/ 34: var returnCount = 0; 35: var unreachable = 0; 36: var iterable = {}; 37: var iterator = { 38: return: function() { 39: returnCount += 1; 40: throw new Test262Error(); 41: } 42: }; 43: var iter; 44: iterable[Symbol.iterator] = function() { 45: return iterator; 46: }; 47: 48: function* g() { 49: 50: var result; 51: var vals = iterable; 52: 53: result = [ {}[ yield ] ] = vals; 54: 55: unreachable += 1; 56: 57: assert.sameValue(result, vals); 58: 59: } 60: iter = g(); 61: iter.next(); 62: assert.throws(Test262Error, function() { 63: iter.return(); 64: }); 65: 66: assert.sameValue(returnCount, 1); 67: assert.sameValue(unreachable, 0, 'Unreachable statement was not executed'); 68: