Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium
New issue 1355 by [email protected]: TypeError on assignment to a
read-only accessor property not in strict mode
http://code.google.com/p/v8/issues/detail?id=1355
Bug report from Dmitry Soshnikov at
http://code.google.com/p/chromium/issues/detail?id=81015
"TypeError: Cannot set property z of #<Object> which has only a getter"
But it should be done only in strict mode.
var foo = Object.defineProperty({}, "bar", {
get: function () {
return 10;
}
});
foo.bar = 20;
Expected behaviour in non-strict mode: Silent assignment failure.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev