mirror of https://github.com/tc39/test262.git
test: syntax error if superproperty private name access
This commit is contained in:
parent
36f5d9527f
commit
b7a83ecaf3
|
@ -0,0 +1,34 @@
|
||||||
|
// Copyright (C) 2018 Jaideep Bhoosreddy (Bloomberg LP). All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: It is syntax error if PrivateName IdentifierName is accessed on SuperProperty
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
SuperProperty[Yield, Await]:
|
||||||
|
super[Expression[+In, ?Yield, ?Await]]
|
||||||
|
super.IdentifierName
|
||||||
|
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
class B {
|
||||||
|
#x() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//- heritage
|
||||||
|
extends B
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
method() {
|
||||||
|
super.#x();
|
||||||
|
}
|
Loading…
Reference in New Issue