mirror of
https://github.com/tc39/test262.git
synced 2025-09-24 10:38:30 +02:00
Enable strict mode testing for sm/AsyncGenerators
This commit is contained in:
parent
5560784cff
commit
e1e18ba8c8
@ -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";
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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) ;`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user