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