Skip to content

Commit 64740d4

Browse files
danbevtargos
authored andcommitted
src: fix compiler warning in inspector_profiler.cc
Currently, the following compiler warnings is generated: ../src/inspector_profiler.cc:231:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] profile->Set(context, FIXED_ONE_BYTE_STRING(isolate, "source-map-cache") ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. This commit adds a .ToChecked() call to avoid the warning. PR-URL: #29660 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 588b388 commit 64740d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inspector_profiler.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void V8CoverageConnection::WriteProfile(Local<String> message) {
229229
// Avoid writing to disk if no source-map data:
230230
if (!source_map_cache_v->IsUndefined()) {
231231
profile->Set(context, FIXED_ONE_BYTE_STRING(isolate, "source-map-cache"),
232-
source_map_cache_v);
232+
source_map_cache_v).ToChecked();
233233
}
234234

235235
Local<String> result_s;

0 commit comments

Comments
 (0)