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 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.

Reply via email to