Skip to content

Commit cf1bdc2

Browse files
RaisinTenjasnell
andauthored
src: use MaybeLocal<Function>() instead of {}
It's clearer. Refs: https://github.com/nodejs/node/pull/48191/files#r1209513784 Co-authored-by: James M Snell <jasnell@gmail.com>
1 parent 397f384 commit cf1bdc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_contextify.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ MaybeLocal<Function> CompileFunction(Isolate* isolate,
952952
nullptr,
953953
ScriptCompiler::kEagerCompile)
954954
.ToLocal(&fn)) {
955-
return {};
955+
return MaybeLocal<Function>();
956956
}
957957

958958
return fn;

0 commit comments

Comments
 (0)