Hello there,

I just noticed that as soon as my interceptor sets a return value, 
GetPropertyAttributes() returns 2 (= DontEnum),
no matter what I previously set using ForceSet() on that object.

For example:

void getter(v8::Local<v8::String> property, const 
v8::PropertyCallbackInfo<v8::Value>& info)
{
    v8::String::Utf8Value as_property(property);
    std::cout << "Getter: property=" << * as_property << std::endl;
    info.GetReturnValue().SetEmptyString();  // can be non-empty as well
}


If I comment-out the last line of the "getter" function, 
GetPropertyAttributes() works correctly.
If I leave it like this, GetPropertyAttributes() always returns 2.

Is there any way to combine the setting of attributes with a 
fully-functioning interceptor?

Thanks in advance,

Danny

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" 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/d/optout.

Reply via email to