Skip to content

Commit

Permalink
fix c++ fomat
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jan 2, 2025
1 parent 436a4dc commit f0c08bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1568,8 +1568,8 @@ Local<Object> ContextifyContext::CompileFunctionAndCacheResult(
TryCatchScope try_cache(env);
Local<Value> resource_name = fn->GetScriptOrigin().ResourceName();
if (!resource_name.IsEmpty() &&
resource_name->ToString(parsing_context)
.ToLocalChecked()->Length() > 0) {
resource_name->ToString(parsing_context).ToLocalChecked()->Length() >
0) {
new_cached_data.reset(ScriptCompiler::CreateCodeCacheForFunction(fn));
}
}
Expand Down

0 comments on commit f0c08bb

Please sign in to comment.