Status: New
Owner: ----
New issue 3334 by [email protected]: Object.defineProperty(fn,"prototype",{
value: .. , writable: false }) fails
http://code.google.com/p/v8/issues/detail?id=3334
function foo(){}
Object.defineProperty(foo,"prototype",{value:2});
foo.prototype; // 2
function bar(){}
Object.defineProperty(bar,"prototype",{value:2,writable:false});
bar.prototype; // {}
Object.getOwnPropertyDescriptor(bar,"prototype"); // { value:2, writable:
false, enumerable: false, configurable: false }
For some reason, setting the value of fn.prototype while changing
`writable` from `true` to `false` causes the descriptor to be updated, but
not the actual property value.
NOTE: this same scenario on normal objects doesn't seem to appear to have
the bug, so it seems to somehow be related to functions and their default
`.prototype` values.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.