Skip to content

Commit

Permalink
USE()
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Mar 18, 2024
1 parent f432354 commit f62d92c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1536,15 +1536,15 @@ bool ContextifyContext::ShouldRetryAsESMInternal(Environment* env,

Local<Context> context = env->context();
std::vector<Local<String>> params = GetCJSParameters(env->isolate_data());
std::ignore = ScriptCompiler::CompileFunction(
USE(ScriptCompiler::CompileFunction(
context,
&wrapped_source,
params.size(),
params.data(),
0,
nullptr,
ScriptCompiler::kNoCompileOptions,
v8::ScriptCompiler::NoCacheReason::kNoCacheNoReason);
v8::ScriptCompiler::NoCacheReason::kNoCacheNoReason));

if (!try_catch.HasTerminated()) {
if (try_catch.HasCaught()) {
Expand Down Expand Up @@ -1753,11 +1753,11 @@ static void CreatePerContextProperties(Local<Object> target,
Array::New(env->isolate(), esm_syntax_error_messages.size());
for (size_t i = 0; i < esm_syntax_error_messages.size(); i++) {
const char* message = esm_syntax_error_messages[i].data();
(void)esm_syntax_error_messages_array->Set(
USE(esm_syntax_error_messages_array->Set(
context,
static_cast<uint32_t>(i),
String::NewFromUtf8(env->isolate(), message)
.ToLocalChecked());
.ToLocalChecked()));
}
READONLY_PROPERTY(syntax_detection_errors, "esmSyntaxErrorMessages",
esm_syntax_error_messages_array);
Expand All @@ -1768,11 +1768,11 @@ static void CreatePerContextProperties(Local<Object> target,
Array::New(env->isolate(), throws_only_in_cjs_error_messages.size());
for (size_t i = 0; i < throws_only_in_cjs_error_messages.size(); i++) {
const char* message = throws_only_in_cjs_error_messages[i].data();
(void)throws_only_in_cjs_error_messages_array->Set(
USE(throws_only_in_cjs_error_messages_array->Set(
context,
static_cast<uint32_t>(i),
String::NewFromUtf8(env->isolate(), message)
.ToLocalChecked());
.ToLocalChecked()));
}
READONLY_PROPERTY(syntax_detection_errors,
"throwsOnlyInCommonJSErrorMessages",
Expand Down

0 comments on commit f62d92c

Please sign in to comment.