Status: New
Owner: ----
New issue 1659 by [email protected]: Setter not invoked when
http://code.google.com/p/v8/issues/detail?id=1659
I expect the following program to coerce the string "september" to a String
object and then invoke the setter
for "myfield", but it does not. SpiderMonkey 1.8.5 works as expected.
I'm running v8-bleeding-edge r9121.
dn51t444:v8-bleeding-edge arjun$ cat ~/Desktop/foo.js
var valueToSetter;
Object.defineProperty(Object.prototype, 'myfield',
{ set: function(v) { valueToSetter = v; } });
"september".myfield = 84;
print("Expected true, got: " + (valueToSetter === 84));
dn51t444:v8-bleeding-edge arjun$ ./d8 ~/Desktop/foo.js
Expected true, got: false
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev