On Wed, May 6, 2015 at 9:34 PM, Francisco Tolmasky <[email protected]> wrote:
> I'm curious what the specifics of isNativeError are. Specifically, if a user
> subclasses Error, will IsNativeError return true? Is there an alternative
> check for this?

Are you referring to v8::Value::IsNativeError()?  It only returns true
for the built-in error types.

If you want the C++ equivalent of `obj instanceof Error`, I think you
would have to walk the prototype chain with
v8::Object::GetPrototype().  Personally, I would just evaluate an
instanceof check.

-- 
-- 
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