blob: 41ee67ea03c64f2d19c3f53edfbcae9ad67fe29d [file] [log] [blame] [edit]
// Copyright (C) 2018 Jaideep Bhoosreddy (Bloomberg LP). All rights reserved.
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: PrivateName CallExpression usage (Accesor get method)
info: |
Updated Productions
CallExpression[Yield, Await]:
CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await]
SuperCall[?Yield, ?Await]
CallExpression[?Yield, ?Await]Arguments[?Yield, ?Await]
CallExpression[?Yield, ?Await][Expression[+In, ?Yield, ?Await]]
CallExpression[?Yield, ?Await].IdentifierName
CallExpression[?Yield, ?Await]TemplateLiteral[?Yield, ?Await]
CallExpression[?Yield, ?Await].PrivateName
template: productions
features: [class-methods-private]
---*/
//- elements
get #m() { return 'test262'; }
//- privateinspectionfunctions
method() {
return this.#m;
}
//- assertions
assert.sameValue(c.method(), 'test262');