diff options
Diffstat (limited to 'src/signal_wrap.cc')
-rw-r--r-- | src/signal_wrap.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index 0e61ba63ea6..4f69fc4bee6 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -47,7 +47,8 @@ class SignalWrap : public HandleWrap { Handle<Value> unused, Handle<Context> context) { Environment* env = Environment::GetCurrent(context); - Local<FunctionTemplate> constructor = FunctionTemplate::New(New); + Local<FunctionTemplate> constructor = FunctionTemplate::New(env->isolate(), + New); constructor->InstanceTemplate()->SetInternalFieldCount(1); constructor->SetClassName(FIXED_ONE_BYTE_STRING(env->isolate(), "Signal")); @@ -109,7 +110,7 @@ class SignalWrap : public HandleWrap { HandleScope handle_scope(env->isolate()); Context::Scope context_scope(env->context()); - Local<Value> arg = Integer::New(signum, env->isolate()); + Local<Value> arg = Integer::New(env->isolate(), signum); wrap->MakeCallback(env->onsignal_string(), 1, &arg); } |