mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Generate tests
This commit is contained in:
parent
97e051114a
commit
6db0565b76
test/language
expressions
async-function
named-returns-async-arrow-returns-arguments-from-parent-function.jsnamed-returns-async-arrow-returns-newtarget.jsnamed-returns-async-arrow.jsnamed-returns-async-function-returns-arguments-from-own-function.jsnamed-returns-async-function-returns-newtarget.jsnamed-returns-async-function.js
class
async-method-static
await-as-binding-identifier-escaped.jsawait-as-binding-identifier.jsawait-as-identifier-reference-escaped.jsawait-as-identifier-reference.jsawait-as-label-identifier-escaped.jsawait-as-label-identifier.jsreturns-async-arrow-returns-arguments-from-parent-function.jsreturns-async-arrow-returns-newtarget.jsreturns-async-arrow.jsreturns-async-function-returns-arguments-from-own-function.jsreturns-async-function-returns-newtarget.jsreturns-async-function.js
async-method
await-as-binding-identifier-escaped.jsawait-as-binding-identifier.jsawait-as-identifier-reference-escaped.jsawait-as-identifier-reference.jsawait-as-label-identifier-escaped.jsawait-as-label-identifier.jsreturns-async-arrow-returns-arguments-from-parent-function.jsreturns-async-arrow-returns-newtarget.jsreturns-async-arrow.jsreturns-async-function-returns-arguments-from-own-function.jsreturns-async-function-returns-newtarget.jsreturns-async-function.js
elements
async-private-method-static
await-as-binding-identifier-escaped.jsawait-as-binding-identifier.jsawait-as-identifier-reference-escaped.jsawait-as-identifier-reference.jsawait-as-label-identifier-escaped.jsawait-as-label-identifier.jsreturns-async-arrow-returns-arguments-from-parent-function.jsreturns-async-arrow-returns-newtarget.jsreturns-async-arrow.jsreturns-async-function-returns-arguments-from-own-function.jsreturns-async-function-returns-newtarget.jsreturns-async-function.js
async-private-method
await-as-binding-identifier-escaped.jsawait-as-binding-identifier.jsawait-as-identifier-reference-escaped.jsawait-as-identifier-reference.jsawait-as-label-identifier-escaped.jsawait-as-label-identifier.jsreturns-async-arrow-returns-arguments-from-parent-function.jsreturns-async-arrow-returns-newtarget.jsreturns-async-arrow.jsreturns-async-function-returns-arguments-from-own-function.jsreturns-async-function-returns-newtarget.jsreturns-async-function.js
object/method-definition
async-await-as-binding-identifier-escaped.jsasync-await-as-binding-identifier.jsasync-await-as-identifier-reference-escaped.jsasync-await-as-identifier-reference.jsasync-await-as-label-identifier-escaped.jsasync-await-as-label-identifier.jsasync-returns-async-arrow-returns-arguments-from-parent-function.jsasync-returns-async-arrow-returns-newtarget.jsasync-returns-async-arrow.jsasync-returns-async-function-returns-arguments-from-own-function.jsasync-returns-async-function-returns-newtarget.jsasync-returns-async-function.js
statements
async-function
returns-async-arrow-returns-arguments-from-parent-function.jsreturns-async-arrow-returns-newtarget.jsreturns-async-arrow.jsreturns-async-function-returns-arguments-from-own-function.jsreturns-async-function-returns-newtarget.jsreturns-async-function.js
class
async-method-static
await-as-binding-identifier-escaped.jsawait-as-binding-identifier.jsawait-as-identifier-reference-escaped.jsawait-as-identifier-reference.jsawait-as-label-identifier-escaped.jsawait-as-label-identifier.jsreturns-async-arrow-returns-arguments-from-parent-function.jsreturns-async-arrow-returns-newtarget.jsreturns-async-arrow.jsreturns-async-function-returns-arguments-from-own-function.jsreturns-async-function-returns-newtarget.jsreturns-async-function.js
async-method
await-as-binding-identifier-escaped.jsawait-as-binding-identifier.jsawait-as-identifier-reference-escaped.jsawait-as-identifier-reference.jsawait-as-label-identifier-escaped.jsawait-as-label-identifier.jsreturns-async-arrow-returns-arguments-from-parent-function.jsreturns-async-arrow-returns-newtarget.jsreturns-async-arrow.jsreturns-async-function-returns-arguments-from-own-function.jsreturns-async-function-returns-newtarget.jsreturns-async-function.js
elements/async-private-method-static
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-expression-named.template
|
||||
// - src/async-functions/evaluation/async-expression-named.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Named async function expression)
|
||||
esid: prod-AsyncFunctionExpression
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-expression-named.template
|
||||
// - src/async-functions/evaluation/async-expression-named.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Named async function expression)
|
||||
esid: prod-AsyncFunctionExpression
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-expression-named.template
|
||||
// - src/async-functions/evaluation/async-expression-named.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Named async function expression)
|
||||
esid: prod-AsyncFunctionExpression
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-expression-named.template
|
||||
// - src/async-functions/evaluation/async-expression-named.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Named async function expression)
|
||||
esid: prod-AsyncFunctionExpression
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-expression-named.template
|
||||
// - src/async-functions/evaluation/async-expression-named.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Named async function expression)
|
||||
esid: prod-AsyncFunctionExpression
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-expression-named.template
|
||||
// - src/async-functions/evaluation/async-expression-named.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Named async function expression)
|
||||
esid: prod-AsyncFunctionExpression
|
||||
|
@ -36,5 +36,3 @@ var C = class {
|
||||
var \u0061wait;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
@ -36,5 +36,3 @@ var C = class {
|
||||
var await;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
@ -36,5 +36,3 @@ var C = class {
|
||||
void \u0061wait;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
@ -36,5 +36,3 @@ var C = class {
|
||||
void await;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
@ -36,5 +36,3 @@ var C = class {
|
||||
\u0061wait: ;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
@ -36,5 +36,3 @@ var C = class {
|
||||
await: ;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -36,7 +36,4 @@ var C = class {
|
||||
var \u0061wait;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
@ -36,7 +36,4 @@ var C = class {
|
||||
var await;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
@ -36,7 +36,4 @@ var C = class {
|
||||
void \u0061wait;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
@ -36,7 +36,4 @@ var C = class {
|
||||
void await;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
@ -36,7 +36,4 @@ var C = class {
|
||||
\u0061wait: ;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
@ -36,7 +36,4 @@ var C = class {
|
||||
await: ;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -32,7 +32,6 @@ var C = class {
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
||||
asyncFn().then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-expr-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -31,7 +31,6 @@ var C = class {
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
||||
asyncFn().then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-class-expr-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -31,7 +31,6 @@ var C = class {
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
||||
asyncFn(1).then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -32,7 +32,6 @@ var C = class {
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
||||
asyncFn(1).then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-expr-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -31,7 +31,6 @@ var C = class {
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
||||
asyncFn(1).then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -31,7 +31,6 @@ var C = class {
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
||||
|
||||
asyncFn(1).then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -35,9 +35,4 @@ var C = class {
|
||||
static async #method() {
|
||||
var \u0061wait;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
5
test/language/expressions/class/elements/async-private-method-static/await-as-binding-identifier.js
5
test/language/expressions/class/elements/async-private-method-static/await-as-binding-identifier.js
@ -35,9 +35,4 @@ var C = class {
|
||||
static async #method() {
|
||||
var await;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
@ -35,9 +35,4 @@ var C = class {
|
||||
static async #method() {
|
||||
void \u0061wait;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
@ -35,9 +35,4 @@ var C = class {
|
||||
static async #method() {
|
||||
void await;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
@ -35,9 +35,4 @@ var C = class {
|
||||
static async #method() {
|
||||
\u0061wait: ;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
@ -35,9 +35,4 @@ var C = class {
|
||||
static async #method() {
|
||||
await: ;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-static-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-static-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
6
test/language/expressions/class/elements/async-private-method/await-as-binding-identifier-escaped.js
6
test/language/expressions/class/elements/async-private-method/await-as-binding-identifier-escaped.js
@ -35,10 +35,4 @@ var C = class {
|
||||
async #method() {
|
||||
var \u0061wait;
|
||||
}
|
||||
async method() {
|
||||
return this.#method();
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -35,10 +35,4 @@ var C = class {
|
||||
async #method() {
|
||||
var await;
|
||||
}
|
||||
async method() {
|
||||
return this.#method();
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -35,10 +35,4 @@ var C = class {
|
||||
async #method() {
|
||||
void \u0061wait;
|
||||
}
|
||||
async method() {
|
||||
return this.#method();
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -35,10 +35,4 @@ var C = class {
|
||||
async #method() {
|
||||
void await;
|
||||
}
|
||||
async method() {
|
||||
return this.#method();
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
6
test/language/expressions/class/elements/async-private-method/await-as-label-identifier-escaped.js
6
test/language/expressions/class/elements/async-private-method/await-as-label-identifier-escaped.js
@ -35,10 +35,4 @@ var C = class {
|
||||
async #method() {
|
||||
\u0061wait: ;
|
||||
}
|
||||
async method() {
|
||||
return this.#method();
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -35,10 +35,4 @@ var C = class {
|
||||
async #method() {
|
||||
await: ;
|
||||
}
|
||||
async method() {
|
||||
return this.#method();
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-expr-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-class-expr-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-expr-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-class-expr-private-method.template
|
||||
// - src/async-functions/evaluation/async-class-expr-private-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -30,5 +30,3 @@ var obj = {
|
||||
var \u0061wait;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = obj.method;
|
||||
|
@ -30,5 +30,3 @@ var obj = {
|
||||
var await;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = obj.method;
|
||||
|
@ -30,5 +30,3 @@ var obj = {
|
||||
void \u0061wait;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = obj.method;
|
||||
|
@ -30,5 +30,3 @@ var obj = {
|
||||
void await;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = obj.method;
|
||||
|
@ -30,5 +30,3 @@ var obj = {
|
||||
\u0061wait: ;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = obj.method;
|
||||
|
@ -30,5 +30,3 @@ var obj = {
|
||||
await: ;
|
||||
}
|
||||
};
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = obj.method;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-obj-method.template
|
||||
// - src/async-functions/evaluation/async-obj-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-obj-method.template
|
||||
// - src/async-functions/evaluation/async-obj-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-obj-method.template
|
||||
// - src/async-functions/evaluation/async-obj-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-obj-method.template
|
||||
// - src/async-functions/evaluation/async-obj-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method)
|
||||
esid: prod-AsyncMethod
|
||||
|
2
test/language/expressions/object/method-definition/async-returns-async-function-returns-newtarget.js
2
test/language/expressions/object/method-definition/async-returns-async-function-returns-newtarget.js
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-obj-method.template
|
||||
// - src/async-functions/evaluation/async-obj-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-obj-method.template
|
||||
// - src/async-functions/evaluation/async-obj-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-declaration.template
|
||||
// - src/async-functions/evaluation/async-declaration.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async function declaration)
|
||||
esid: prod-AsyncFunctionDeclaration
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-declaration.template
|
||||
// - src/async-functions/evaluation/async-declaration.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async function declaration)
|
||||
esid: prod-AsyncFunctionDeclaration
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-declaration.template
|
||||
// - src/async-functions/evaluation/async-declaration.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async function declaration)
|
||||
esid: prod-AsyncFunctionDeclaration
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-declaration.template
|
||||
// - src/async-functions/evaluation/async-declaration.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async function declaration)
|
||||
esid: prod-AsyncFunctionDeclaration
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-declaration.template
|
||||
// - src/async-functions/evaluation/async-declaration.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async function declaration)
|
||||
esid: prod-AsyncFunctionDeclaration
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-declaration.template
|
||||
// - src/async-functions/evaluation/async-declaration.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async function declaration)
|
||||
esid: prod-AsyncFunctionDeclaration
|
||||
|
@ -36,6 +36,4 @@ class C {
|
||||
var \u0061wait;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
@ -36,6 +36,4 @@ class C {
|
||||
var await;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
@ -36,6 +36,4 @@ class C {
|
||||
void \u0061wait;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
@ -36,6 +36,4 @@ class C {
|
||||
void await;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
@ -36,6 +36,4 @@ class C {
|
||||
\u0061wait: ;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
@ -36,6 +36,4 @@ class C {
|
||||
await: ;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-class-decl-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -31,7 +31,6 @@ class C {
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
||||
asyncFn().then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-decl-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -30,7 +30,6 @@ class C {
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
||||
asyncFn().then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-class-decl-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -30,7 +30,6 @@ class C {
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
||||
asyncFn(1).then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-class-decl-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -31,7 +31,6 @@ class C {
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
||||
asyncFn(1).then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-decl-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -30,7 +30,6 @@ class C {
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
||||
asyncFn(1).then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-class-decl-static-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-static-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Static async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
@ -30,7 +30,6 @@ class C {
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method;
|
||||
|
||||
|
||||
asyncFn(1).then(retFn => {
|
||||
count++;
|
||||
return retFn();
|
||||
|
@ -36,6 +36,3 @@ class C {
|
||||
var \u0061wait;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -36,6 +36,3 @@ class C {
|
||||
var await;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -36,6 +36,3 @@ class C {
|
||||
void \u0061wait;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -36,6 +36,3 @@ class C {
|
||||
void await;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -36,6 +36,3 @@ class C {
|
||||
\u0061wait: ;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -36,6 +36,3 @@ class C {
|
||||
await: ;
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let c = new C();
|
||||
let asyncFn = c.method.bind(c);
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case
|
||||
// - src/async-functions/syntax/async-class-decl-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-decl-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-arrow.case
|
||||
// - src/async-functions/syntax/async-class-decl-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-arguments-from-own-function.case
|
||||
// - src/async-functions/syntax/async-class-decl-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function-returns-newtarget.case
|
||||
// - src/async-functions/syntax/async-class-decl-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/async-functions/returns-async-function.case
|
||||
// - src/async-functions/syntax/async-class-decl-method.template
|
||||
// - src/async-functions/evaluation/async-class-decl-method.template
|
||||
/*---
|
||||
description: Async function returns an async function. (Async method as a ClassDeclaration element)
|
||||
esid: prod-AsyncMethod
|
||||
|
@ -35,10 +35,6 @@ class C {
|
||||
static async #method() {
|
||||
var \u0061wait;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
||||
|
||||
|
6
test/language/statements/class/elements/async-private-method-static/await-as-binding-identifier.js
6
test/language/statements/class/elements/async-private-method-static/await-as-binding-identifier.js
@ -35,10 +35,6 @@ class C {
|
||||
static async #method() {
|
||||
var await;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
||||
|
||||
|
@ -35,10 +35,6 @@ class C {
|
||||
static async #method() {
|
||||
void \u0061wait;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
||||
|
||||
|
6
test/language/statements/class/elements/async-private-method-static/await-as-identifier-reference.js
6
test/language/statements/class/elements/async-private-method-static/await-as-identifier-reference.js
@ -35,10 +35,6 @@ class C {
|
||||
static async #method() {
|
||||
void await;
|
||||
}
|
||||
static async method() {
|
||||
return this.#method();
|
||||
}
|
||||
}
|
||||
// Stores a reference `asyncFn` for case evaluation
|
||||
let asyncFn = C.method.bind(C);
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user