10.6-10-c-ii-1-s-strict.js (517B)
1 'use strict'; 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 es5id: 10.6-10-c-ii-1-s 7 description: > 8 arguments[i] remains same after changing actual parameters in 9 strict mode 10 flags: [onlyStrict] 11 ---*/ 12 13 function foo(a,b,c) 14 { 15 a = 1; b = 'str'; c = 2.1; 16 return (arguments[0] === 10 && arguments[1] === 'sss' && arguments[2] === 1); 17 } 18 19 assert(foo(10, 'sss', 1), 'foo(10, "sss", 1) !== true'); 20 21 reportCompare(0, 0);