Comment #11 on issue 1530 by [email protected]: 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
and I stand corrected, and I realize where my initial problem came from as
my original code was:
var o = {};
var f1 = function () {};
var f2 = function () {};
Object.defineProperty(f1, "prototype", {value: o, writable: false});
f2.prototype = o;
f1.prototype === o; // false
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.