Anybody? On Jan 1, 9:00 pm, Omkar Kulkarni <[email protected]> wrote: > I have a javascript object 'myObject' to which I have attached > interceptors. I can access its properties in two ways: > > myObject.myProperty OR myObject.myProperty ( ) > > Both shall invoke the 'Get' interceptor in C++. Is there a way to > differentiate between the two from within the interceptor? > > Handle<Value> myInterceptor(Local<String> name, const AccessorInfo& > info) > { > if( the property is being read ) > return a string; > else if( the property is being called ) > return a function; > > } > > Appreciate the help. Thanks!
-- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
