blob: 12d1a159a4cac5ef081018127cdc85038f5c3e33 [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright (C) 2016 the V8 project authors. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3/*---
4esid: sec-method-definitions
5es6id: 14.3
6description: >
7 Get accessor method may not have a formal parameter (regardless of the
8 presence of an initializer)
9info: |
10 Syntax
11
12 MethodDefinition[Yield] :
13
14 get PropertyName[?Yield] ( ) { FunctionBody }
15features: [default-parameters]
16negative: SyntaxError
17---*/
18
190, { get a(param = null) {} };