diff options
Diffstat (limited to 'src/node_dtrace.cc')
-rw-r--r-- | src/node_dtrace.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_dtrace.cc b/src/node_dtrace.cc index a4b5645d151..f0575b38907 100644 --- a/src/node_dtrace.cc +++ b/src/node_dtrace.cc @@ -324,7 +324,8 @@ void InitDTrace(Environment* env, Handle<Object> target) { for (unsigned int i = 0; i < ARRAY_SIZE(tab); i++) { Local<String> key = OneByteString(env->isolate(), tab[i].name); - Local<Value> val = FunctionTemplate::New(tab[i].func)->GetFunction(); + Local<Value> val = FunctionTemplate::New(env->isolate(), tab[i].func) + ->GetFunction(); target->Set(key, val); } |