mirror of
https://github.com/tc39/test262.git
synced 2025-09-21 17:18:29 +02:00
Generate tests
This commit is contained in:
parent
74a4152703
commit
9e71e2120a
@ -29,6 +29,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async() => {
|
async () => {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
};
|
}
|
||||||
|
@ -29,6 +29,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async() => {
|
async () => {
|
||||||
var await;
|
var await;
|
||||||
};
|
}
|
||||||
|
@ -29,6 +29,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async() => {
|
async () => {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
};
|
}
|
||||||
|
@ -29,6 +29,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async() => {
|
async () => {
|
||||||
void await;
|
void await;
|
||||||
};
|
}
|
||||||
|
@ -29,6 +29,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async() => {
|
async () => {
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
};
|
}
|
||||||
|
@ -29,6 +29,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async() => {
|
async () => {
|
||||||
await: ;
|
await: ;
|
||||||
};
|
}
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function () {
|
var asyncFn = async function () {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function () {
|
var asyncFn = async function () {
|
||||||
var await;
|
var await;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function () {
|
var asyncFn = async function () {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function () {
|
var asyncFn = async function () {
|
||||||
void await;
|
void await;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function () {
|
var asyncFn = async function () {
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function () {
|
var asyncFn = async function () {
|
||||||
await: ;
|
await: ;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function fn() {
|
var asyncFn = async function asyncFn() {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function fn() {
|
var asyncFn = async function asyncFn() {
|
||||||
var await;
|
var await;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function fn() {
|
var asyncFn = async function asyncFn() {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function fn() {
|
var asyncFn = async function asyncFn() {
|
||||||
void await;
|
void await;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function fn() {
|
var asyncFn = async function asyncFn() {
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
};
|
};
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var fn = async function fn() {
|
var asyncFn = async function asyncFn() {
|
||||||
await: ;
|
await: ;
|
||||||
};
|
};
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Named async function expression)
|
||||||
|
esid: prod-AsyncFunctionExpression
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionExpression :
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var asyncFn = async function asyncFn(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async () => a === arguments;
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, true);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,29 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Named async function expression)
|
||||||
|
esid: prod-AsyncFunctionExpression
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionExpression :
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var asyncFn = async function asyncFn(x) {
|
||||||
|
return async () => new.target;
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,29 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/async-functions/returns-async-arrow.case
|
||||||
|
// - src/async-functions/syntax/async-expression-named.template
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Named async function expression)
|
||||||
|
esid: prod-AsyncFunctionExpression
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionExpression :
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var asyncFn = async function asyncFn(x) {
|
||||||
|
return async () => x;
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,30 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Named async function expression)
|
||||||
|
esid: prod-AsyncFunctionExpression
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionExpression :
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var asyncFn = async function asyncFn(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async function() { return a === arguments; };
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, false);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,29 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Named async function expression)
|
||||||
|
esid: prod-AsyncFunctionExpression
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionExpression :
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var asyncFn = async function asyncFn(x) {
|
||||||
|
return async function() { return new.target; };
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,29 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/async-functions/returns-async-function.case
|
||||||
|
// - src/async-functions/syntax/async-expression-named.template
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Named async function expression)
|
||||||
|
esid: prod-AsyncFunctionExpression
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionExpression :
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var asyncFn = async function asyncFn(x) {
|
||||||
|
return async function() { return x; };
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -31,6 +31,10 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async method() {
|
var C = class {
|
||||||
|
static async method() {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
@ -31,6 +31,10 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async method() {
|
var C = class {
|
||||||
|
static async method() {
|
||||||
var await;
|
var await;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
@ -31,6 +31,10 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async method() {
|
var C = class {
|
||||||
|
static async method() {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
@ -31,6 +31,10 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async method() {
|
var C = class {
|
||||||
|
static async method() {
|
||||||
void await;
|
void await;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
@ -31,6 +31,10 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async method() {
|
var C = class {
|
||||||
|
static async method() {
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
@ -31,6 +31,10 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async method() {
|
var C = class {
|
||||||
|
static async method() {
|
||||||
await: ;
|
await: ;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async () => a === arguments;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, true);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,39 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async method(x) {
|
||||||
|
return async () => new.target;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,39 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async method(x) {
|
||||||
|
return async () => x;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,40 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async function() { return a === arguments; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, false);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,39 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async method(x) {
|
||||||
|
return async function() { return new.target; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,39 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async method(x) {
|
||||||
|
return async function() { return x; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -31,6 +31,12 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async method() {
|
var C = class {
|
||||||
|
async method() {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
@ -31,6 +31,12 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async method() {
|
var C = class {
|
||||||
|
async method() {
|
||||||
var await;
|
var await;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
@ -31,6 +31,12 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async method() {
|
var C = class {
|
||||||
|
async method() {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
@ -31,6 +31,12 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async method() {
|
var C = class {
|
||||||
|
async method() {
|
||||||
void await;
|
void await;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
@ -31,6 +31,12 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async method() {
|
var C = class {
|
||||||
|
async method() {
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
@ -31,6 +31,12 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async method() {
|
var C = class {
|
||||||
|
async method() {
|
||||||
await: ;
|
await: ;
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async () => a === arguments;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, true);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,41 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async method(x) {
|
||||||
|
return async () => new.target;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,41 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async method(x) {
|
||||||
|
return async () => x;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,42 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async function() { return a === arguments; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, false);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,41 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async method(x) {
|
||||||
|
return async function() { return new.target; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,41 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
MethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async method(x) {
|
||||||
|
return async function() { return x; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -31,6 +31,13 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async #method() {
|
var C = class {
|
||||||
|
static async #method() {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
}};
|
}
|
||||||
|
static async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
@ -31,6 +31,13 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async #method() {
|
var C = class {
|
||||||
|
static async #method() {
|
||||||
var await;
|
var await;
|
||||||
}};
|
}
|
||||||
|
static async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
@ -31,6 +31,13 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async #method() {
|
var C = class {
|
||||||
|
static async #method() {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
}};
|
}
|
||||||
|
static async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
@ -31,6 +31,13 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async #method() {
|
var C = class {
|
||||||
|
static async #method() {
|
||||||
void await;
|
void await;
|
||||||
}};
|
}
|
||||||
|
static async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
@ -31,6 +31,13 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async #method() {
|
var C = class {
|
||||||
|
static async #method() {
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
}};
|
}
|
||||||
|
static async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
@ -31,6 +31,13 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { static async #method() {
|
var C = class {
|
||||||
|
static async #method() {
|
||||||
await: ;
|
await: ;
|
||||||
}};
|
}
|
||||||
|
static async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
@ -0,0 +1,43 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-static-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async #method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async () => a === arguments;
|
||||||
|
}
|
||||||
|
static async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, true);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,42 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-static-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async #method(x) {
|
||||||
|
return async () => new.target;
|
||||||
|
}
|
||||||
|
static async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,42 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-static-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async #method(x) {
|
||||||
|
return async () => x;
|
||||||
|
}
|
||||||
|
static async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,43 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-static-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async #method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async function() { return a === arguments; };
|
||||||
|
}
|
||||||
|
static async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, false);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,42 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-static-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async #method(x) {
|
||||||
|
return async function() { return new.target; };
|
||||||
|
}
|
||||||
|
static async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,42 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Static private async method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-static-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
static PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async #method(x) {
|
||||||
|
return async function() { return x; };
|
||||||
|
}
|
||||||
|
static async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method.bind(C);
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -31,6 +31,14 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async #method() {
|
var C = class {
|
||||||
|
async #method() {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
}};
|
}
|
||||||
|
async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
@ -31,6 +31,14 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async #method() {
|
var C = class {
|
||||||
|
async #method() {
|
||||||
var await;
|
var await;
|
||||||
}};
|
}
|
||||||
|
async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
@ -31,6 +31,14 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async #method() {
|
var C = class {
|
||||||
|
async #method() {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
}};
|
}
|
||||||
|
async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
@ -31,6 +31,14 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async #method() {
|
var C = class {
|
||||||
|
async #method() {
|
||||||
void await;
|
void await;
|
||||||
}};
|
}
|
||||||
|
async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
@ -31,6 +31,14 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async #method() {
|
var C = class {
|
||||||
|
async #method() {
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
}};
|
}
|
||||||
|
async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
@ -31,6 +31,14 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
var C = class { async #method() {
|
var C = class {
|
||||||
|
async #method() {
|
||||||
await: ;
|
await: ;
|
||||||
}};
|
}
|
||||||
|
async method() {
|
||||||
|
return this.#method();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
@ -0,0 +1,44 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async #method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async () => a === arguments;
|
||||||
|
}
|
||||||
|
async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, true);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,43 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async #method(x) {
|
||||||
|
return async () => new.target;
|
||||||
|
}
|
||||||
|
async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,43 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async #method(x) {
|
||||||
|
return async () => x;
|
||||||
|
}
|
||||||
|
async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,44 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async #method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async function() { return a === arguments; };
|
||||||
|
}
|
||||||
|
async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, false);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,43 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async #method(x) {
|
||||||
|
return async function() { return new.target; };
|
||||||
|
}
|
||||||
|
async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,43 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async private method as a ClassExpression element)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions, class-methods-private]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
ClassElement :
|
||||||
|
PrivateMethodDefinition
|
||||||
|
|
||||||
|
MethodDefinition :
|
||||||
|
AsyncMethod
|
||||||
|
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async #method(x) {
|
||||||
|
return async function() { return x; };
|
||||||
|
}
|
||||||
|
async method(x) {
|
||||||
|
return this.#method(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let c = new C();
|
||||||
|
let asyncFn = c.method.bind(c);
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -30,3 +30,5 @@ var obj = {
|
|||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
@ -30,3 +30,5 @@ var obj = {
|
|||||||
var await;
|
var await;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
@ -30,3 +30,5 @@ var obj = {
|
|||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
@ -30,3 +30,5 @@ var obj = {
|
|||||||
void await;
|
void await;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
@ -30,3 +30,5 @@ var obj = {
|
|||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
@ -30,3 +30,5 @@ var obj = {
|
|||||||
await: ;
|
await: ;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
@ -0,0 +1,34 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var obj = {
|
||||||
|
async method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async () => a === arguments;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, true);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,33 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var obj = {
|
||||||
|
async method(x) {
|
||||||
|
return async () => new.target;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,33 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/async-functions/returns-async-arrow.case
|
||||||
|
// - src/async-functions/syntax/async-obj-method.template
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var obj = {
|
||||||
|
async method(x) {
|
||||||
|
return async () => x;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,34 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var obj = {
|
||||||
|
async method(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async function() { return a === arguments; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, false);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,33 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var obj = {
|
||||||
|
async method(x) {
|
||||||
|
return async function() { return new.target; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,33 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/async-functions/returns-async-function.case
|
||||||
|
// - src/async-functions/syntax/async-obj-method.template
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async method)
|
||||||
|
esid: prod-AsyncMethod
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncMethod :
|
||||||
|
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
var obj = {
|
||||||
|
async method(x) {
|
||||||
|
return async function() { return x; };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = obj.method;
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async function fn() {
|
async function asyncFn() {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async function fn() {
|
async function asyncFn() {
|
||||||
var await;
|
var await;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async function fn() {
|
async function asyncFn() {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async function fn() {
|
async function asyncFn() {
|
||||||
void await;
|
void await;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async function fn() {
|
async function asyncFn() {
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
async function fn() {
|
async function asyncFn() {
|
||||||
await: ;
|
await: ;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async function declaration)
|
||||||
|
esid: prod-AsyncFunctionDeclaration
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionDeclaration:
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
async function asyncFn(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async () => a === arguments;
|
||||||
|
}
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, true);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,29 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async function declaration)
|
||||||
|
esid: prod-AsyncFunctionDeclaration
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionDeclaration:
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
async function asyncFn(x) {
|
||||||
|
return async () => new.target;
|
||||||
|
}
|
||||||
|
|
||||||
|
asyncFn().then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,29 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/async-functions/returns-async-arrow.case
|
||||||
|
// - src/async-functions/syntax/async-declaration.template
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async function declaration)
|
||||||
|
esid: prod-AsyncFunctionDeclaration
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionDeclaration:
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
async function asyncFn(x) {
|
||||||
|
return async () => x;
|
||||||
|
}
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,30 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async function declaration)
|
||||||
|
esid: prod-AsyncFunctionDeclaration
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionDeclaration:
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
async function asyncFn(x) {
|
||||||
|
let a = arguments;
|
||||||
|
return async function() { return a === arguments; };
|
||||||
|
}
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, false);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,29 @@
|
|||||||
|
// 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
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async function declaration)
|
||||||
|
esid: prod-AsyncFunctionDeclaration
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionDeclaration:
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
async function asyncFn(x) {
|
||||||
|
return async function() { return new.target; };
|
||||||
|
}
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, undefined);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -0,0 +1,29 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/async-functions/returns-async-function.case
|
||||||
|
// - src/async-functions/syntax/async-declaration.template
|
||||||
|
/*---
|
||||||
|
description: Async function returns an async function. (Async function declaration)
|
||||||
|
esid: prod-AsyncFunctionDeclaration
|
||||||
|
features: [async-functions]
|
||||||
|
flags: [generated, async]
|
||||||
|
info: |
|
||||||
|
Async Function Definitions
|
||||||
|
|
||||||
|
AsyncFunctionDeclaration:
|
||||||
|
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
|
||||||
|
|
||||||
|
---*/
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
async function asyncFn(x) {
|
||||||
|
return async function() { return x; };
|
||||||
|
}
|
||||||
|
|
||||||
|
asyncFn(1).then(retFn => {
|
||||||
|
count++;
|
||||||
|
return retFn();
|
||||||
|
}).then(result => {
|
||||||
|
assert.sameValue(result, 1);
|
||||||
|
assert.sameValue(count, 1);
|
||||||
|
}).then($DONE, $DONE);
|
@ -31,6 +31,11 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
class C { static async method() {
|
class C {
|
||||||
|
static async method() {
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
@ -31,6 +31,11 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
class C { static async method() {
|
class C {
|
||||||
|
static async method() {
|
||||||
var await;
|
var await;
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
@ -31,6 +31,11 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
class C { static async method() {
|
class C {
|
||||||
|
static async method() {
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
@ -31,6 +31,11 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
|
|
||||||
class C { static async method() {
|
class C {
|
||||||
|
static async method() {
|
||||||
void await;
|
void await;
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
// Stores a reference `asyncFn` for case evaluation
|
||||||
|
let asyncFn = C.method;
|
||||||
|
|
||||||
|
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