10.5-1gs-strict.js (420B)
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 es5id: 10.5-1gs 8 description: Strict Mode - arguments cannot be assigned to in a strict function 9 negative: 10 phase: parse 11 type: SyntaxError 12 flags: [onlyStrict] 13 ---*/ 14 15 $DONOTEVALUATE(); 16 17 18 function f_10_5_1_gs(){ 19 arguments = 7; 20 }