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

function strictAssignParameterGetElement(a)
{
  "use strict";
  a = 17;
  return arguments[0];
}

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