blob: 983124a1c624e11bb7be8decdb3fdea5ae33cb81 [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright (c) 2012 Ecma International. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/*---
5es5id: 10.6-10-c-ii-1-s
6description: >
7 arguments[i] remains same after changing actual parameters in
8 strict mode
9flags: [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
18assert(foo(10, 'sss', 1), 'foo(10, "sss", 1) !== true');