You can safely throw exceptions from any callbacks including setters, getters and interceptors.
On Mon, Mar 16, 2009 at 9:21 PM, Stephan Beal <[email protected]> wrote: > > Hi, all! > > To review: > > typedef void(* v8::AccessorSetter)(Local< String > property, Local< > Value > value, const AccessorInfo &info) > > Is it safe for me to use ThrowException() to signal an error from my > setter? That would seem to be the only way to trigger an error there > (since it returns void). > > If that's not how to trigger a Setter error, how can it be done? > > :-? > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
