diff options
author | Saúl Ibarra Corretgé <saghul@gmail.com> | 2014-03-13 03:08:29 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-04-07 16:37:20 +0400 |
commit | 42b93437102e63ded3e09bbeb24dc96d5b1b62f6 (patch) | |
tree | 07b065cd4f65696bae6fecd5606acffd44ad63c1 /src/timer_wrap.cc | |
parent | 962f96d3416ee00c78e729bc1c1b05e02d0c1ef2 (diff) |
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.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc index 9f0b1fdf05e..099a54ec95d 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) { |