From e1e18ba8c8efb77bb8527f895a200cb5dcf16027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Wed, 30 Apr 2025 14:16:21 +0200 Subject: [PATCH] Enable strict mode testing for sm/AsyncGenerators --- .../AsyncGenerators/async-generator-declaration-in-modules.js | 3 +-- .../create-function-parse-before-getprototype.js | 4 +--- test/staging/sm/AsyncGenerators/for-await-bad-syntax.js | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/test/staging/sm/AsyncGenerators/async-generator-declaration-in-modules.js b/test/staging/sm/AsyncGenerators/async-generator-declaration-in-modules.js index 0c45e51865..6522c5a660 100644 --- a/test/staging/sm/AsyncGenerators/async-generator-declaration-in-modules.js +++ b/test/staging/sm/AsyncGenerators/async-generator-declaration-in-modules.js @@ -2,12 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + async function* f() { return "success"; } diff --git a/test/staging/sm/AsyncGenerators/create-function-parse-before-getprototype.js b/test/staging/sm/AsyncGenerators/create-function-parse-before-getprototype.js index ec5602c1b2..118ca15e8a 100644 --- a/test/staging/sm/AsyncGenerators/create-function-parse-before-getprototype.js +++ b/test/staging/sm/AsyncGenerators/create-function-parse-before-getprototype.js @@ -2,12 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + var getProtoCalled = false; var newTarget = Object.defineProperty(function(){}.bind(), "prototype", { @@ -24,4 +23,3 @@ assert.throws(SyntaxError, () => { }); assert.sameValue(getProtoCalled, false); - diff --git a/test/staging/sm/AsyncGenerators/for-await-bad-syntax.js b/test/staging/sm/AsyncGenerators/for-await-bad-syntax.js index c1d4800ae6..f6d3ab7e4e 100644 --- a/test/staging/sm/AsyncGenerators/for-await-bad-syntax.js +++ b/test/staging/sm/AsyncGenerators/for-await-bad-syntax.js @@ -8,6 +8,7 @@ description: | pending esid: pending ---*/ + var AsyncGenerator = async function*(){}.constructor; function assertSyntaxError(code) { @@ -29,4 +30,3 @@ for (var decl of ["", "var", "let", "const"]) { assertSyntaxError(`for await (${decl} ${head} in null) ;`); } } -