Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/getter-param-dflt.js

raw
1 // 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 /*---
4 esid: sec-method-definitions
5 es6id: 14.3
6 description: >
7 Get accessor method may not have a formal parameter (regardless of the
8 presence of an initializer)
9 info: |
10 Syntax
11
12 MethodDefinition[Yield] :
13
14 get PropertyName[?Yield] ( ) { FunctionBody }
15 features: [default-parameters]
16 negative:
17 phase: parse
18 type: SyntaxError
19 ---*/
20
21 throw "Test262: This statement should not be evaluated.";
22
23 0, { get a(param = null) {} };