keith_miller@apple.com | bcc77f2 | 2016-07-15 06:03:25 +0000 | [diff] [blame] | 1 | // Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | es5id: 10.6-10-c-ii-1-s |
| 6 | description: > |
| 7 | arguments[i] remains same after changing actual parameters in |
| 8 | strict mode |
| 9 | flags: [onlyStrict] |
| 10 | ---*/ |
| 11 | |
| 12 | function foo(a,b,c) |
| 13 | { |
| 14 | a = 1; b = 'str'; c = 2.1; |
| 15 | return (arguments[0] === 10 && arguments[1] === 'sss' && arguments[2] === 1); |
| 16 | } |
| 17 | |
| 18 | assert(foo(10, 'sss', 1), 'foo(10, "sss", 1) !== true'); |