Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_dtrace.cc')
-rw-r--r--src/node_dtrace.cc3
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);
}