blob: d97cdf4dfbe2c714482199f3e63122728d2891cb (
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 Int8Array(10);
x = function () { return arr.length; }
for (var i = 0; i < arr.length; i++) {
arr[i] = i;
}
assertEq(arr[5], 5);
}
f();
|