aboutsummaryrefslogtreecommitdiff
path: root/src/timer_wrap.cc
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <saghul@gmail.com>2014-03-13 00:08:29 +0100
committerFedor Indutny <fedor@indutny.com>2014-04-07 16:37:20 +0400
commit42b93437102e63ded3e09bbeb24dc96d5b1b62f6 (patch)
tree07b065cd4f65696bae6fecd5606acffd44ad63c1 /src/timer_wrap.cc
parent962f96d3416ee00c78e729bc1c1b05e02d0c1ef2 (diff)
downloadandroid-node-v8-42b93437102e63ded3e09bbeb24dc96d5b1b62f6.tar.gz
android-node-v8-42b93437102e63ded3e09bbeb24dc96d5b1b62f6.tar.bz2
android-node-v8-42b93437102e63ded3e09bbeb24dc96d5b1b62f6.zip
src: update uv callbacks after API changes
async, timer, prepare, idle and check handles no longer get a status parameter since they can never fail.
Diffstat (limited to 'src/timer_wrap.cc')
-rw-r--r--src/timer_wrap.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc
index 9f0b1fdf05..099a54ec95 100644
--- a/src/timer_wrap.cc
+++ b/src/timer_wrap.cc
@@ -144,13 +144,12 @@ class TimerWrap : public HandleWrap {
args.GetReturnValue().Set(static_cast<double>(repeat));
}
- static void OnTimeout(uv_timer_t* handle, int status) {
+ static void OnTimeout(uv_timer_t* handle) {
TimerWrap* wrap = static_cast<TimerWrap*>(handle->data);
Environment* env = wrap->env();
HandleScope handle_scope(env->isolate());
Context::Scope context_scope(env->context());
- Local<Value> argv[1] = { Integer::New(env->isolate(), status) };
- wrap->MakeCallback(kOnTimeout, ARRAY_SIZE(argv), argv);
+ wrap->MakeCallback(kOnTimeout, 0, NULL);
}
static void Now(const FunctionCallbackInfo<Value>& args) {