Expand permitted duplicate test with async/generator methods

This commit is contained in:
Alexey Shvayka 2020-08-26 06:16:19 +03:00 committed by Rick Waldron
parent 8060bba447
commit 4d4c160674

View File

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