summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/nonstrict-assign-parameter-get-element.js
blob: 747abbad318d4a1cbc2faa57e5cdf702abcebc19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

function assignParameterGetElement(a)
{
  a = 17;
  return arguments[0];
}

for (var i = 0; i < 5; i++)
  assertEq(assignParameterGetElement(42), 17);