Skip to content

Commit b90b8ab

Browse files
tniessenruyadorno
authored andcommitted
src: fix bug in GetErrorSource()
Refs: #43875 PR-URL: #44019 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Feng Yu <F3n67u@outlook.com>
1 parent 697dbfb commit b90b8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_errors.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static std::string GetErrorSource(Isolate* isolate,
105105
if (has_source_map_url && env != nullptr && env->source_maps_enabled()) {
106106
std::string source = GetSourceMapErrorSource(
107107
isolate, context, message, added_exception_line);
108-
return added_exception_line ? source : sourceline;
108+
return *added_exception_line ? source : sourceline;
109109
}
110110

111111
// Because of how node modules work, all scripts are wrapped with a

0 commit comments

Comments
 (0)