blob: 44640e6c7fa894ca1a1675e859e804f400b6f0f2 [file] [log] [blame]
(function() {
// Iterate over characters in a string.
var o = "hello";
var foo = function(o) {
var result = "";
for (var s in o)
result += o[s];
return result;
};
noInline(foo);
for (var i = 0; i < 10000; ++i) {
if (foo("hello") !== "hello")
throw new Error("incorrect result");
}
foo(null);
})();