Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/method-definition/name-param-redecl.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: >
6 It is a Syntax Error if any element of the BoundNames of
7 StrictFormalParameters also occurs in the LexicallyDeclaredNames of
8 FunctionBody.
9 es6id: 14.3.1
10 negative:
11 phase: parse
12 type: SyntaxError
13 ---*/
14
15 throw "Test262: This statement should not be evaluated.";
16
17 var obj = {
18 method(param) {
19 let param;
20 }
21 };