Comment #10 on issue 1530 by erights: Defining function's 'prototype'
property with Object.defineProperty sets different value and makes property
immutable
http://code.google.com/p/v8/issues/detail?id=1530
Correcting your use of the defineProperty API below, I get the correct
results on Chrome 24.0.1312.57. AFAICT, this really is fixed.
var o = {};
var f1 = function () {};
var f2 = function () {};
Object.defineProperty(f1, "prototype", {value: o});
f2.prototype = o;
f1.prototype === o; // true
f2.prototype === o; // true
--
--
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/groups/opt_out.