param-duplicated-strict-1-strict.js (690B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright (c) 2012 Ecma International. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 6 /*--- 7 info: | 8 Refer 13.1; 9 It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode 10 FunctionDeclaration or FunctionExpression. 11 es5id: 13.1-8-s 12 description: > 13 Strict Mode - SyntaxError is thrown if a function is created in 14 'strict mode' using a FunctionExpression and the function has two 15 identical parameters 16 negative: 17 phase: parse 18 type: SyntaxError 19 flags: [onlyStrict] 20 ---*/ 21 22 $DONOTEVALUATE(); 23 24 (function (param, param) { });