param-arguments-strict-strict.js (700B)
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 the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList 10 of a strict mode FunctionDeclaration or FunctionExpression. 11 es5id: 13.1-3-s 12 description: > 13 Strict Mode - SyntaxError is thrown if the identifier 'arguments' 14 appears within a FormalParameterList of a strict mode 15 FunctionDeclaration 16 negative: 17 phase: parse 18 type: SyntaxError 19 flags: [onlyStrict] 20 ---*/ 21 22 $DONOTEVALUATE(); 23 24 function _13_1_3_fun(arguments) { }