From f5369c26a4c4a462e4f8de5282850a7a1ee9f516 Mon Sep 17 00:00:00 2001 From: Gokhan Kurt Date: Sat, 15 Oct 2022 01:35:28 +0300 Subject: [PATCH] add async-functions feature to files which should have it --- .../await-as-param-ident-nested-arrow-parameter-position.js | 1 + .../await-as-param-nested-arrow-body-position.js | 1 + .../await-as-param-nested-arrow-parameter-position.js | 1 + .../await-as-param-rest-nested-arrow-parameter-position.js | 1 + .../early-errors-arrow-duplicate-parameters.js | 1 + .../early-errors-object-method-arguments-in-formal-parameters.js | 1 + .../early-errors-object-method-await-in-formals-default.js | 1 + .../early-errors-object-method-await-in-formals.js | 1 + .../early-errors-object-method-body-contains-super-call.js | 1 + .../early-errors-object-method-eval-in-formal-parameters.js | 1 + .../early-errors-object-method-formals-body-duplicate.js | 1 + .../object/method-definition/object-method-returns-promise.js | 1 + 12 files changed, 12 insertions(+) diff --git a/test/language/expressions/async-arrow-function/await-as-param-ident-nested-arrow-parameter-position.js b/test/language/expressions/async-arrow-function/await-as-param-ident-nested-arrow-parameter-position.js index ace0fee5a4..676067492a 100644 --- a/test/language/expressions/async-arrow-function/await-as-param-ident-nested-arrow-parameter-position.js +++ b/test/language/expressions/async-arrow-function/await-as-param-ident-nested-arrow-parameter-position.js @@ -8,6 +8,7 @@ description: > negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/async-arrow-function/await-as-param-nested-arrow-body-position.js b/test/language/expressions/async-arrow-function/await-as-param-nested-arrow-body-position.js index 61880e92be..593915584b 100644 --- a/test/language/expressions/async-arrow-function/await-as-param-nested-arrow-body-position.js +++ b/test/language/expressions/async-arrow-function/await-as-param-nested-arrow-body-position.js @@ -8,6 +8,7 @@ description: > negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position.js b/test/language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position.js index c9e750fe5d..52d7dc6fc2 100644 --- a/test/language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position.js +++ b/test/language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position.js @@ -8,6 +8,7 @@ description: > negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/async-arrow-function/await-as-param-rest-nested-arrow-parameter-position.js b/test/language/expressions/async-arrow-function/await-as-param-rest-nested-arrow-parameter-position.js index 9373e6efa5..11b33a6ab4 100644 --- a/test/language/expressions/async-arrow-function/await-as-param-rest-nested-arrow-parameter-position.js +++ b/test/language/expressions/async-arrow-function/await-as-param-rest-nested-arrow-parameter-position.js @@ -8,6 +8,7 @@ description: > negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/async-arrow-function/early-errors-arrow-duplicate-parameters.js b/test/language/expressions/async-arrow-function/early-errors-arrow-duplicate-parameters.js index a6783b9889..5f0aaca17a 100644 --- a/test/language/expressions/async-arrow-function/early-errors-arrow-duplicate-parameters.js +++ b/test/language/expressions/async-arrow-function/early-errors-arrow-duplicate-parameters.js @@ -27,6 +27,7 @@ info: | negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/object/method-definition/early-errors-object-method-arguments-in-formal-parameters.js b/test/language/expressions/object/method-definition/early-errors-object-method-arguments-in-formal-parameters.js index 2c2b700287..1db9900668 100644 --- a/test/language/expressions/object/method-definition/early-errors-object-method-arguments-in-formal-parameters.js +++ b/test/language/expressions/object/method-definition/early-errors-object-method-arguments-in-formal-parameters.js @@ -9,6 +9,7 @@ negative: phase: parse type: SyntaxError flags: [onlyStrict] +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/object/method-definition/early-errors-object-method-await-in-formals-default.js b/test/language/expressions/object/method-definition/early-errors-object-method-await-in-formals-default.js index 9085b44470..71cda72d18 100644 --- a/test/language/expressions/object/method-definition/early-errors-object-method-await-in-formals-default.js +++ b/test/language/expressions/object/method-definition/early-errors-object-method-await-in-formals-default.js @@ -8,6 +8,7 @@ description: It is a SyntaxError if FormalParameters' default expressions contai negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/object/method-definition/early-errors-object-method-await-in-formals.js b/test/language/expressions/object/method-definition/early-errors-object-method-await-in-formals.js index 119d969cb2..37ade67a2f 100644 --- a/test/language/expressions/object/method-definition/early-errors-object-method-await-in-formals.js +++ b/test/language/expressions/object/method-definition/early-errors-object-method-await-in-formals.js @@ -8,6 +8,7 @@ description: It is a SyntaxError if FormalParameters contains await negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/object/method-definition/early-errors-object-method-body-contains-super-call.js b/test/language/expressions/object/method-definition/early-errors-object-method-body-contains-super-call.js index b02c757197..7ecacdcfb4 100644 --- a/test/language/expressions/object/method-definition/early-errors-object-method-body-contains-super-call.js +++ b/test/language/expressions/object/method-definition/early-errors-object-method-body-contains-super-call.js @@ -8,6 +8,7 @@ description: It is a SyntaxError if AsyncFunctionBody contains SuperCall is true negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/object/method-definition/early-errors-object-method-eval-in-formal-parameters.js b/test/language/expressions/object/method-definition/early-errors-object-method-eval-in-formal-parameters.js index 69b3d38240..fc68e9132b 100644 --- a/test/language/expressions/object/method-definition/early-errors-object-method-eval-in-formal-parameters.js +++ b/test/language/expressions/object/method-definition/early-errors-object-method-eval-in-formal-parameters.js @@ -9,6 +9,7 @@ negative: phase: parse type: SyntaxError flags: [onlyStrict] +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/object/method-definition/early-errors-object-method-formals-body-duplicate.js b/test/language/expressions/object/method-definition/early-errors-object-method-formals-body-duplicate.js index c4d0271dfd..a3a71f342d 100644 --- a/test/language/expressions/object/method-definition/early-errors-object-method-formals-body-duplicate.js +++ b/test/language/expressions/object/method-definition/early-errors-object-method-formals-body-duplicate.js @@ -8,6 +8,7 @@ description: It is a SyntaxError if BoundNames of FormalParameters also occurs i negative: phase: parse type: SyntaxError +features: [async-functions] ---*/ $DONOTEVALUATE(); diff --git a/test/language/expressions/object/method-definition/object-method-returns-promise.js b/test/language/expressions/object/method-definition/object-method-returns-promise.js index 47bdc0e87a..a52dcdf2cd 100644 --- a/test/language/expressions/object/method-definition/object-method-returns-promise.js +++ b/test/language/expressions/object/method-definition/object-method-returns-promise.js @@ -6,6 +6,7 @@ author: Brian Terlson esid: pending description: > Async function method definitions return promises +features: [async-functions] ---*/ var obj = { async method() {}