summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug625141-1.js
blob: 9f79cf7b25902cd4947b347134e6b0e28dc4b5c0 (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 f() {
  var arr = new Int32Array(10);
  x = function () { return arr.length; }
  for (var i = 0; i < arr.length; i++) {
    arr[i] = i;
  }
  assertEq(arr[5], 5);
}
f();