via-strict-strict.js (498B)
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-2-s 7 description: arguments[i] doesn't map to actual parameters in strict mode 8 flags: [onlyStrict] 9 ---*/ 10 11 function foo(a,b,c) 12 { 13 arguments[0] = 1; arguments[1] = 'str'; arguments[2] = 2.1; 14 return 10 === a && 'sss' === b && 1 === c; 15 } 16 17 assert(foo(10,'sss',1), 'foo(10,"sss",1) !== true'); 18 19 reportCompare(0, 0);