blob: d3c283eb9d4788bd536d090e03fc44b573eed607 [file] [log] [blame]
function foo(a) {
a[42] = 95010;
}
noInline(foo);
function test(length, expected) {
var a = new Int16Array(length);
foo(a);
var result = a[42];
if (result != expected)
throw new Error("bad value at a[42]: " + result);
}
for (var i = 0; i < 100000; ++i) {
test(10, void 0);
test(100, 29474);
}