The toString() of 'class' and 'function' return SourceText #904
Annotations
10 errors
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/arrow-function.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "(a, b) => {\r\n ;\r\n}" (( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ })
---> Error: Conforms to NativeFunction Syntax: "(a, b) => {\r\n ;\r\n}" (( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/arrow-function.js:15:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: "use strict";
02: // Copyright (C) 2016 Michael Ficarra. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04:
05: /*---
06: esid: sec-arrow-function-definitions-runtime-semantics-evaluation
07: description: Function.prototype.toString on an arrow function
08: includes: [nativeFunctionMatcher.js]
09: ---*/
10:
11: let f = /* before */( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }/* after */;
12: let g = /* before */( /* a */ ) /* b */ => /* c */ 0/* after */;
13: let h = /* before */a /* a */ => /* b */ 0/* after */;
14:
15: assertToStringOrNativeFunction(f, "( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }");
16: assertToStringOrNativeFunction(g, "( /* a */ ) /* b */ => /* c */ 0");
17: assertToStringOrNativeFunction(h, "a /* a */ => /* b */ 0");
18:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/arrow-function.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "(a, b) => {\r\n ;\r\n}" (( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ })
---> Error: Conforms to NativeFunction Syntax: "(a, b) => {\r\n ;\r\n}" (( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/arrow-function.js:14:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: // Copyright (C) 2016 Michael Ficarra. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03:
04: /*---
05: esid: sec-arrow-function-definitions-runtime-semantics-evaluation
06: description: Function.prototype.toString on an arrow function
07: includes: [nativeFunctionMatcher.js]
08: ---*/
09:
10: let f = /* before */( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }/* after */;
11: let g = /* before */( /* a */ ) /* b */ => /* c */ 0/* after */;
12: let h = /* before */a /* a */ => /* b */ 0/* after */;
13:
14: assertToStringOrNativeFunction(f, "( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }");
15: assertToStringOrNativeFunction(g, "( /* a */ ) /* b */ => /* c */ 0");
16: assertToStringOrNativeFunction(h, "a /* a */ => /* b */ 0");
17:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/async-arrow-function.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "async (a, b) => {\r\n ;\r\n}" (async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ })
---> Error: Conforms to NativeFunction Syntax: "async (a, b) => {\r\n ;\r\n}" (async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/async-arrow-function.js:15:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: // Copyright 2017 André Bargull. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03:
04: /*---
05: esid: sec-async-arrow-function-definitions-runtime-semantics-evaluation
06: description: Function.prototype.toString on an async arrow function
07: features: [async-functions]
08: includes: [nativeFunctionMatcher.js]
09: ---*/
10:
11: let f = /* before */async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }/* after */;
12: let g = /* before */async /* a */ ( /* b */ ) /* c */ => /* d */ 0/* after */;
13: let h = /* before */async /* a */ a /* b */ => /* c */ 0/* after */;
14:
15: assertToStringOrNativeFunction(f, "async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }");
16: assertToStringOrNativeFunction(g, "async /* a */ ( /* b */ ) /* c */ => /* d */ 0");
17: assertToStringOrNativeFunction(h, "async /* a */ a /* b */ => /* c */ 0");
18:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/async-arrow-function.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "async (a, b) => {\r\n ;\r\n}" (async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ })
---> Error: Conforms to NativeFunction Syntax: "async (a, b) => {\r\n ;\r\n}" (async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/async-arrow-function.js:16:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: "use strict";
02: // Copyright 2017 André Bargull. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04:
05: /*---
06: esid: sec-async-arrow-function-definitions-runtime-semantics-evaluation
07: description: Function.prototype.toString on an async arrow function
08: features: [async-functions]
09: includes: [nativeFunctionMatcher.js]
10: ---*/
11:
12: let f = /* before */async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }/* after */;
13: let g = /* before */async /* a */ ( /* b */ ) /* c */ => /* d */ 0/* after */;
14: let h = /* before */async /* a */ a /* b */ => /* c */ 0/* after */;
15:
16: assertToStringOrNativeFunction(f, "async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }");
17: assertToStringOrNativeFunction(g, "async /* a */ ( /* b */ ) /* c */ => /* d */ 0");
18: assertToStringOrNativeFunction(h, "async /* a */ a /* b */ => /* c */ 0");
19:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/async-function-declaration.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "async function f(x, y) {\r\n ;\r\n ;\r\n}" (async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ })
---> Error: Conforms to NativeFunction Syntax: "async function f(x, y) {\r\n ;\r\n ;\r\n}" (async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/async-function-declaration.js:14:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: // Copyright 2016 Microsoft, Inc. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03:
04: /*---
05: author: Brian Terlson <[email protected]>
06: esid: sec-function.prototype.tostring
07: description: Function.prototype.toString on an async function declaration
08: features: [async-functions]
09: includes: [nativeFunctionMatcher.js]
10: ---*/
11:
12: /* before */async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */
13:
14: assertToStringOrNativeFunction(f, "async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
15:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/async-function-declaration.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "async function f(x, y) {\r\n ;\r\n ;\r\n}" (async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ })
---> Error: Conforms to NativeFunction Syntax: "async function f(x, y) {\r\n ;\r\n ;\r\n}" (async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/async-function-declaration.js:15:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: "use strict";
02: // Copyright 2016 Microsoft, Inc. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04:
05: /*---
06: author: Brian Terlson <[email protected]>
07: esid: sec-function.prototype.tostring
08: description: Function.prototype.toString on an async function declaration
09: features: [async-functions]
10: includes: [nativeFunctionMatcher.js]
11: ---*/
12:
13: /* before */async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */
14:
15: assertToStringOrNativeFunction(f, "async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
16:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/async-function-expression.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "async function F(x, y) {\r\n ;\r\n ;\r\n}" (async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ })
---> Error: Conforms to NativeFunction Syntax: "async function F(x, y) {\r\n ;\r\n ;\r\n}" (async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/async-function-expression.js:15:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: // Copyright 2016 Microsoft, Inc. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03:
04: /*---
05: author: Brian Terlson <[email protected]>
06: esid: sec-function.prototype.tostring
07: description: Function.prototype.toString on an async function expression
08: features: [async-functions]
09: includes: [nativeFunctionMatcher.js]
10: ---*/
11:
12: let f = /* before */async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */;
13: let g = /* before */async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */;
14:
15: assertToStringOrNativeFunction(f, "async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
16: assertToStringOrNativeFunction(g, "async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }");
17:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/async-function-expression.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "async function F(x, y) {\r\n ;\r\n ;\r\n}" (async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ })
---> Error: Conforms to NativeFunction Syntax: "async function F(x, y) {\r\n ;\r\n ;\r\n}" (async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/async-function-expression.js:16:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: "use strict";
02: // Copyright 2016 Microsoft, Inc. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04:
05: /*---
06: author: Brian Terlson <[email protected]>
07: esid: sec-function.prototype.tostring
08: description: Function.prototype.toString on an async function expression
09: features: [async-functions]
10: includes: [nativeFunctionMatcher.js]
11: ---*/
12:
13: let f = /* before */async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */;
14: let g = /* before */async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */;
15:
16: assertToStringOrNativeFunction(f, "async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
17: assertToStringOrNativeFunction(g, "async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }");
18:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/async-method-class-expression-static.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "async function() { }" (async f /* a */ ( /* b */ ) /* c */ { /* d */ })
---> Error: Conforms to NativeFunction Syntax: "async function() { }" (async f /* a */ ( /* b */ ) /* c */ { /* d */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/async-method-class-expression-static.js:16:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: // Copyright 2017 André Bargull. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03:
04: /*---
05: esid: sec-function.prototype.tostring
06: description: Function.prototype.toString on an async method
07: features: [async-functions]
08: includes: [nativeFunctionMatcher.js]
09: ---*/
10:
11: let x = "h";
12: let f = class { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f;
13: let g = class { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g;
14: let h = class { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h;
15:
16: assertToStringOrNativeFunction(f, "async f /* a */ ( /* b */ ) /* c */ { /* d */ }");
17: assertToStringOrNativeFunction(g, "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
18: assertToStringOrNativeFunction(h, "async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
19:
|
Test:
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L11493
built-ins/Function/prototype/toString/async-method-class-expression-static.js
Jint.Runtime.JavaScriptException: Conforms to NativeFunction Syntax: "async function() { }" (async f /* a */ ( /* b */ ) /* c */ { /* d */ })
---> Error: Conforms to NativeFunction Syntax: "async function() { }" (async f /* a */ ( /* b */ ) /* c */ { /* d */ })
at assertNativeFunction (fn, special) harness/nativeFunctionMatcher.js:218:11
at assertToStringOrNativeFunction (fn, expected) harness/nativeFunctionMatcher.js:209:5
at built-ins/Function/prototype/toString/async-method-class-expression-static.js:17:1
--- End of inner exception stack trace ---
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord) in D:\a\jint\jint\Jint\Engine.cs:line 426
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 789
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file)
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 78
01: "use strict";
02: // Copyright 2017 André Bargull. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04:
05: /*---
06: esid: sec-function.prototype.tostring
07: description: Function.prototype.toString on an async method
08: features: [async-functions]
09: includes: [nativeFunctionMatcher.js]
10: ---*/
11:
12: let x = "h";
13: let f = class { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f;
14: let g = class { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g;
15: let h = class { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h;
16:
17: assertToStringOrNativeFunction(f, "async f /* a */ ( /* b */ ) /* c */ { /* d */ }");
18: assertToStringOrNativeFunction(g, "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
19: assertToStringOrNativeFunction(h, "async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
20:
|
The logs for this run have expired and are no longer available.
Loading