Enable strict mode testing for sm/AsyncGenerators

This commit is contained in:
André Bargull 2025-04-30 14:16:21 +02:00 committed by Philip Chimento
parent 5560784cff
commit e1e18ba8c8
3 changed files with 3 additions and 6 deletions

View File

@ -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";
}

View File

@ -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);

View File

@ -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) ;`);
}
}