summaryrefslogtreecommitdiff
path: root/src/signal_wrap.cc
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-03-13 20:38:14 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2014-03-13 20:56:55 +0400
commitce04c726a31cd13be131915b1c8b8bc7a00a4d24 (patch)
treeb309f6f42362231f54825586b9d79bd6163bb985 /src/signal_wrap.cc
parent1c7bf245dc2d520c005e01bcb56ecb3275971395 (diff)
downloadnode-new-ce04c726a31cd13be131915b1c8b8bc7a00a4d24.tar.gz
src: update to v8 3.24 APIs
Diffstat (limited to 'src/signal_wrap.cc')
-rw-r--r--src/signal_wrap.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc
index 0e61ba63ea..4f69fc4bee 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);
}