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_perf.cc')
-rw-r--r--src/node_perf.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc
index 1eddb00f48a..4d977d4ba61 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -705,8 +705,7 @@ void Initialize(Local<Object> target,
env->SetProtoMethod(eldh, "enable", ELDHistogramEnable);
env->SetProtoMethod(eldh, "disable", ELDHistogramDisable);
env->SetProtoMethod(eldh, "reset", ELDHistogramReset);
- target->Set(context, eldh_classname,
- eldh->GetFunction(env->context()).ToLocalChecked()).Check();
+ env->SetConstructorFunction(target, eldh_classname, eldh);
}
} // namespace performance