Is calling MakeWeak on an already weak handle something that needs to be supported? I'd say you add a clone method and have the items that force storage cell duplication return an error. Supporting common use case that makes these easy to use should be the goal.
On Tue, Aug 27, 2013 at 9:34 AM, Dan Carney <[email protected]> wrote: > Just a heads up. All old style callbacks will be gone in the next > release. They have been deprecated for some time, but now anything using > v8::Arguments or v8::AccessorInfo won't compile. > > Just a reminder, to convert a function like: > > Handle<Value> OldCallback(const v8::Arguments& args) { > Local<Value> x = ... // do stuff with args > return x; > } > > you just simply do this: > > void NewCallback(const v8::FunctionCallbackInfo& info) { > Local<Value> x = ... // do stuff with info > info.GetReturnValue().Set(x); > } > > I'll update the wrapper library at > https://github.com/drcarney66/v8-backport to reflect the changes. Should > people have a lot of functions to convert, it might be easier to use that > or something like it. Any callback needing to be fast probably wants to > use new style callbacks. > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to a topic in the > Google Groups "v8-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/v8-users/6kSAbnUb-rQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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/groups/opt_out.
