Status: New
Owner: ----

New issue 1169 by [email protected]: Overriding inherited read-only proprties must fail / throw
http://code.google.com/p/v8/issues/detail?id=1169

It seems that V8 does not fails neither throws exception when inherited read only properties are overridden. Following example can be used to reproduce an issue:

(function() {
"use strict";

function Type() {}
Object.freeze(Type.prototype);
var object = Object.create(Type.prototype);
object.constructor = function Foo() {};

return object
})().constructor.name // Foo (expected Type)





--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to