From e1ffd9474dcf85d13999ff8723f63f3111320743 Mon Sep 17 00:00:00 2001 From: Keyhan Vakil Date: Tue, 14 Mar 2023 06:46:26 +0000 Subject: [PATCH] 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`. Remove these incorrect comments. Refs: https://github.com/nodejs/node/pull/24950 --- src/node_builtins.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/node_builtins.cc b/src/node_builtins.cc index 0439fff5115bd9..e2097a07bf8e38 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -253,9 +253,6 @@ bool BuiltinLoader::Add(const char* id, std::string_view utf8source) { return Add(id, UnionBytes(out)); } -// Returns Local of the compiled module if return_code_cache -// is false (we are only compiling the function). -// Otherwise return a Local containing the cache. MaybeLocal BuiltinLoader::LookupAndCompileInternal( Local context, const char* id, @@ -353,9 +350,6 @@ MaybeLocal BuiltinLoader::LookupAndCompileInternal( return scope.Escape(fun); } -// Returns Local of the compiled module if return_code_cache -// is false (we are only compiling the function). -// Otherwise return a Local containing the cache. MaybeLocal BuiltinLoader::LookupAndCompile(Local context, const char* id, Realm* optional_realm) {