This probably never happens, but in case creating the error object fails, undefined is returned.
On Monday, February 8, 2016 at 9:03:42 PM UTC+1, Alex Kodat wrote: > > This must have been asked before but can't find an explanation so ... just > curious why Exception::Error et al are declared to have a Local<Value> > result instead of Local<Object>. A not uncommon pattern is to create a new > Error object and then set some properties on it which requires a ->ToObject > or Local<Object>::Cast on the Exception::Error result. Trivial, but it just > seems odd that it's necessary. > > Thanks > -- -- 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.
