Skip to content

Commit 0a0fb68

Browse files
danbevMylesBorins
authored andcommitted
src: remove unused variable in node_contextify
Currently the following warning is show when building: ../src/node_contextify.cc:642:10: warning: unused variable 'display_errors' [-Wunused-variable] bool display_errors = maybe_display_errors.ToChecked(); This commit removes the unused variable which became unused in commit aeddc36 ("src: remove tracking for exception arrow data"). PR-URL: #17491 Refs: #17394 Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent b8ecf3c commit 0a0fb68

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/node_contextify.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,6 @@ class ContextifyScript : public BaseObject {
661661
MaybeLocal<String> filename = GetFilenameArg(env, options);
662662
MaybeLocal<Integer> lineOffset = GetLineOffsetArg(env, options);
663663
MaybeLocal<Integer> columnOffset = GetColumnOffsetArg(env, options);
664-
Maybe<bool> maybe_display_errors = GetDisplayErrorsArg(env, options);
665664
MaybeLocal<Uint8Array> cached_data_buf = GetCachedData(env, options);
666665
Maybe<bool> maybe_produce_cached_data = GetProduceCachedData(env, options);
667666
MaybeLocal<Context> maybe_context = GetContext(env, options);
@@ -670,7 +669,6 @@ class ContextifyScript : public BaseObject {
670669
return;
671670
}
672671

673-
bool display_errors = maybe_display_errors.ToChecked();
674672
bool produce_cached_data = maybe_produce_cached_data.ToChecked();
675673

676674
ScriptCompiler::CachedData* cached_data = nullptr;

0 commit comments

Comments
 (0)