File: nonstrict-assign-element-get-parameter.js

package info (click to toggle)
mozjs24 24.2.0-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 143,740 kB
  • ctags: 118,242
  • sloc: cpp: 501,028; ansic: 115,367; python: 47,505; sh: 19,474; asm: 9,294; xml: 7,876; makefile: 6,227; perl: 2,003; exp: 449; sed: 35; csh: 21
file content (13 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (42)
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);