Hello,
I recently upgrade my application to use v 2.2.0 and am now having an
issue with ObjectTemplate::SetAccessor. I am seeing the AccessorSetter
called but not the AccessorGetter. The variable is in the list of keys
when I call Object.keys on the object created from the ObjectTemplate,
but it evaluates to undefined and the AccessorGetter is never invoked.
The AccessorSetter is invoked when I try and set a value.
Code:
_state.objTemplate->SetAccessor (
v8::String::NewSymbol (Name.get_buffer ()),
local_get_string, // Does not ever get called.
local_set, // Gets called
v8::External::Wrap ((void *)ptr));
This code was working in v 2.1.3.1, the previous version I was using
for development. I am currently developing under MacOS 10.5.8 and the
32 bit version of V8 with XCode 3.1.3. Any tips on what I may be doing
wrong or where to track this if it is a known issue would be
appreciated.
-Randall
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
To unsubscribe from this group, send email to
v8-users+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.