I've now made a bunch of methods in the api const, including Handle::IsEmpty() and Value::Is*().
There are still some methods left that aren't const, such as FunctionTemplate::GetFunction, but that's because it isn't obvious that they're constant. On the other hand, because of the way the implementation and the garbage collector works, nothing is truly constant -- so I've decided not to do anything about the remaining methods for now. On Mon, Dec 15, 2008 at 4:23 PM, Anthony Shipman <[email protected]> wrote: > > I see that Handle::IsEmpty() is not const. Is this an oversight? > Similarly for Value:Is*() tests. Is it possible to introduct const-ness into > the API here. This is for handles that are used in const methods. > > -- > Anthony Shipman Mamas don't let your babies > [email protected] grow up to be outsourced. > > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
