blob: e3e057ec4fa9a5b97832f3db3bd055c711ac31d6 [file] [log] [blame]
function g(i) {
with(this) {}; // Don't inline.
if (i === 1500)
String.prototype.__proto__ = Array.prototype;
}
function f() {
var arr = new String("A");
for (var i=0; i<2000; i++) {
g(i);
assertEq(arr instanceof Array, i >= 1500);
}
}
f();