summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/nonstrict-assign-element-get-parameter.js
blob: c55588daa4618977f00f26e9c353feb27d83034a (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 assignElementGetParameter(a)
{
  arguments[0] = 17;
  return a;
}

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