Skip to content

Commit e1ffd94

Browse files
committed
src: remove dead comments about return_code_cache
This behavior of sometimes returning the function & other times returning the code cache was removed a long time ago in the referenced PR, as evinced by the return type `MaybeLocal<Function>`. Remove these incorrect comments. Refs: nodejs#24950
1 parent bcebb91 commit e1ffd94

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/node_builtins.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@ bool BuiltinLoader::Add(const char* id, std::string_view utf8source) {
253253
return Add(id, UnionBytes(out));
254254
}
255255

256-
// Returns Local<Function> of the compiled module if return_code_cache
257-
// is false (we are only compiling the function).
258-
// Otherwise return a Local<Object> containing the cache.
259256
MaybeLocal<Function> BuiltinLoader::LookupAndCompileInternal(
260257
Local<Context> context,
261258
const char* id,
@@ -353,9 +350,6 @@ MaybeLocal<Function> BuiltinLoader::LookupAndCompileInternal(
353350
return scope.Escape(fun);
354351
}
355352

356-
// Returns Local<Function> of the compiled module if return_code_cache
357-
// is false (we are only compiling the function).
358-
// Otherwise return a Local<Object> containing the cache.
359353
MaybeLocal<Function> BuiltinLoader::LookupAndCompile(Local<Context> context,
360354
const char* id,
361355
Realm* optional_realm) {

0 commit comments

Comments
 (0)