blob: ed98aa5627d177ebe7abdeefa7c75bc4e9f2e319 [file] [log] [blame]
var a = {};
function foo() {
return Array.prototype.splice.apply([], a);
}
noInline(foo);
function bar(b) {
with({});
a = arguments;
a.__defineGetter__("length", String.prototype.valueOf);
foo();
}
var exception;
try {
bar();
} catch (e) {
exception = e;
}
if (exception != "TypeError: Type error")
throw "FAIL";