PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/arguments/nonstrict-later-assign.js

http://github.com/zpao/v8monkey
JavaScript | 18 lines | 11 code | 3 blank | 4 comment | 1 complexity | bbc1f02477d2ed579c098e8279e75e1e MD5 | raw file
 1/*
 2 * Any copyright is dedicated to the Public Domain.
 3 * http://creativecommons.org/licenses/publicdomain/
 4 */
 5load(libdir + 'array-compare.js');
 6
 7function getLaterAssign(a)
 8{
 9  var o = arguments;
10  a = 17;
11  return o;
12}
13
14var a1, a2;
15for (var i = 0; i < 5; i++)
16  a1 = getLaterAssign(1);
17
18assertEq(arraysEqual(a1, [17]), true);