diff options
Diffstat (limited to 'src/inspector_profiler.cc')
-rw-r--r-- | src/inspector_profiler.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inspector_profiler.cc b/src/inspector_profiler.cc index e5e01dc3c9..867f145ff5 100644 --- a/src/inspector_profiler.cc +++ b/src/inspector_profiler.cc @@ -340,7 +340,8 @@ std::string GetCwd(Environment* env) { void StartProfilers(Environment* env) { Isolate* isolate = env->isolate(); Local<String> coverage_str = env->env_vars()->Get( - isolate, FIXED_ONE_BYTE_STRING(isolate, "NODE_V8_COVERAGE")); + isolate, FIXED_ONE_BYTE_STRING(isolate, "NODE_V8_COVERAGE")) + .FromMaybe(Local<String>()); if (!coverage_str.IsEmpty() && coverage_str->Length() > 0) { CHECK_NULL(env->coverage_connection()); env->set_coverage_connection(std::make_unique<V8CoverageConnection>(env)); |