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