Skip to content

Commit 2d3137c

Browse files
targosMylesBorins
authored andcommitted
src: fix GetCpuProfiler() deprecation warning
Refs: nodejs/node-v8#46 PR-URL: #19989 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent af62a16 commit 2d3137c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/env.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ void Environment::CleanupHandles() {
252252
void Environment::StartProfilerIdleNotifier() {
253253
uv_prepare_start(&idle_prepare_handle_, [](uv_prepare_t* handle) {
254254
Environment* env = ContainerOf(&Environment::idle_prepare_handle_, handle);
255-
env->isolate()->GetCpuProfiler()->SetIdle(true);
255+
env->isolate()->SetIdle(true);
256256
});
257257

258258
uv_check_start(&idle_check_handle_, [](uv_check_t* handle) {
259259
Environment* env = ContainerOf(&Environment::idle_check_handle_, handle);
260-
env->isolate()->GetCpuProfiler()->SetIdle(false);
260+
env->isolate()->SetIdle(false);
261261
});
262262
}
263263

0 commit comments

Comments
 (0)