Hi, all!
i have a bound class property (set in the prototype) which i've
explicitly marked as ReadOnly, but JS code is still allowing me to
overwrite it:
var m = new MyNative();
m.other = new MyNative();
// print("Setting other to null.");
// m.other = null; // .other is marked as R/O: shouldn't do anything
/ /print("Set other to null.");
m.other.str = "i am the other!"; // dies here if i reassign above
// print("Re-assigned other.str.");
print('m.other.str =',m.other.str);
am i misunderstanding what ReadOnly is for, or is this a v8 bug? If it
makes a difference, the member is accessed via a custom Getter/Setter
combination (but that shouldn't matter?).
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---