blob: 08f8828b961f4cc54e1f1dc8a314d3fe5b3585ad [file] [log] [blame]
(function() {
// Iterate over typed arrays.
var foo = function() {
var a = new Uint8Array(5);
for (var i = 0; i < a.length; ++i)
a[i] = i;
var result = "";
for (var p in a)
result += a[p];
return result;
};
noInline(foo);
for (var i = 0; i < 10000; ++i) {
if (foo() !== "01234")
throw new Error("bad result");
}
foo(null);
})();