Permalink
Browse files

binding: do not rely on MakeCallback

  • Loading branch information...
1 parent edc3c95 commit ef33df4c786e8018ff52f227132cb23e43062f58 @indutny committed Jun 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/defer-tick.cc
View
3 src/defer-tick.cc
@@ -31,7 +31,8 @@ static void DeferCallback(uv_work_t* work) {
HandleScope scope;
DeferRequest* req = container_of(work, DeferRequest, work);
- MakeCallback(Context::GetCurrent()->Global(), req->callback, 0, NULL);
+ assert(!req->callback.IsEmpty());
+ req->callback->Call(Context::GetCurrent()->Global(), 0, NULL);
req->callback.Dispose();
req->callback.Clear();

0 comments on commit ef33df4

Please sign in to comment.