~ubuntu-branches/ubuntu/trusty/mozjs17/trusty

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/arguments/nonstrict-assign.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Any copyright is dedicated to the Public Domain.
 
3
 * http://creativecommons.org/licenses/publicdomain/
 
4
 */
 
5
load(libdir + 'array-compare.js');
 
6
 
 
7
function assign(a)
 
8
{
 
9
  a = 17;
 
10
  return arguments;
 
11
}
 
12
 
 
13
var a1;
 
14
for (var i = 0; i < 5; i++)
 
15
  a1 = assign(1);
 
16
 
 
17
assertEq(arraysEqual(a1, [17]), true);