mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Expand permitted duplicate test with async/generator methods
This commit is contained in:
parent
8060bba447
commit
4d4c160674
@ -2,7 +2,6 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
esid: sec-object-initializer
|
esid: sec-object-initializer
|
||||||
es6id: 12.2.6
|
|
||||||
description: Permitted duplicate `__proto__` property
|
description: Permitted duplicate `__proto__` property
|
||||||
info: |
|
info: |
|
||||||
Annex B defines an early error for duplicate PropertyName of `__proto__`,
|
Annex B defines an early error for duplicate PropertyName of `__proto__`,
|
||||||
@ -14,6 +13,7 @@ info: |
|
|||||||
any duplicate entries for "__proto__" and at least two of those entries
|
any duplicate entries for "__proto__" and at least two of those entries
|
||||||
were obtained from productions of the form
|
were obtained from productions of the form
|
||||||
PropertyDefinition : PropertyName : AssignmentExpression .
|
PropertyDefinition : PropertyName : AssignmentExpression .
|
||||||
|
features: [generators, async-functions, async-iteration]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -24,6 +24,9 @@ var obj = {
|
|||||||
proto__: null,
|
proto__: null,
|
||||||
['__proto__']: null,
|
['__proto__']: null,
|
||||||
__proto__() {},
|
__proto__() {},
|
||||||
|
* __proto__() {},
|
||||||
|
async __proto__() {},
|
||||||
|
async * __proto__() {},
|
||||||
get __proto__() { return 33; },
|
get __proto__() { return 33; },
|
||||||
set __proto__(_) { return 44; }
|
set __proto__(_) { return 44; }
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user