summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/nonstrict-later-assign.js
blob: fbf72abc4c5f9de58754adeede7f2e9f1bc36993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */
load(libdir + 'array-compare.js');

function getLaterAssign(a)
{
  var o = arguments;
  a = 17;
  return o;
}

var a1, a2;
for (var i = 0; i < 5; i++)
  a1 = getLaterAssign(1);

assertEq(arraysEqual(a1, [17]), true);