summaryrefslogtreecommitdiff
path: root/src/node_perf.cc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-10-20 13:50:10 +0200
committerAnna Henningsen <anna@addaleax.net>2018-10-25 19:49:46 +0200
commita3cad3e2ff95eb7474b4baefafc969211657a896 (patch)
tree7f839e03a0e1422fa2574188a5bb745dd8b9d9f2 /src/node_perf.cc
parent958d5b7f1d1fa47133de48625abb2fb3aa7b8ffd (diff)
downloadandroid-node-v8-a3cad3e2ff95eb7474b4baefafc969211657a896.tar.gz
android-node-v8-a3cad3e2ff95eb7474b4baefafc969211657a896.tar.bz2
android-node-v8-a3cad3e2ff95eb7474b4baefafc969211657a896.zip
test: verify `performance.timerify()` works w/ non-Node Contexts
PR-URL: https://github.com/nodejs/node/pull/23784 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r--src/node_perf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc
index 5f1b70a5c4..d3ee881f59 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -310,7 +310,7 @@ void TimerFunctionCall(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
HandleScope scope(isolate);
Environment* env = Environment::GetCurrent(isolate);
- CHECK_NOT_NULL(env); // TODO(addaleax): Verify that this is correct.
+ CHECK_NOT_NULL(env);
Local<Context> context = env->context();
Local<Function> fn = args.Data().As<Function>();
size_t count = args.Length();