blob: 94940286545c8205dc5419d577cf064393a03a06 [file] [log] [blame]
description(
"Tests that function.length correctly intercepts stores when a function is used as a prototype."
);
function foo() { }
function Bar() { }
Bar.prototype = foo;
var o = new Bar();
shouldBe("o.length", "0");
o.length = 42;
shouldBe("o.length", "0");