IsNativeSyntaxError?

16 views
Skip to first unread message

Francisco Tolmasky

unread,
Aug 26, 2015, 5:13:53 PM8/26/15
to v8-users
Is there a way to check if something is a native syntaxerror/referenceerror/etc as well as just NativeError (checking the className isn't fool proof since someone could extend a native error with a custom SyntaxError)

Ben Noordhuis

unread,
Aug 28, 2015, 5:39:11 PM8/28/15
to v8-u...@googlegroups.com
You can in C++ code with v8::Value::IsNativeError().
Reply all
Reply to author
Forward
0 new messages