We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56fe9ba commit 96c095fCopy full SHA for 96c095f
src/node_errors.cc
@@ -63,7 +63,7 @@ static std::string GetErrorSource(Isolate* isolate,
63
Environment* env = Environment::GetCurrent(isolate);
64
const bool has_source_map_url =
65
!message->GetScriptOrigin().SourceMapUrl().IsEmpty();
66
- if (has_source_map_url && env->source_maps_enabled()) {
+ if (has_source_map_url && env != nullptr && env->source_maps_enabled()) {
67
return sourceline;
68
}
69
0 commit comments