From f6aa38dc5f2e5faf4e771f1a8b07770335ea5f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 11 Apr 2023 12:33:49 +0200 Subject: [PATCH] src: use correct variable in node_builtins.cc PR-URL: https://github.com/nodejs/node/pull/47343 Reviewed-By: Yagiz Nizipli Reviewed-By: Colin Ihrig Reviewed-By: Chengzhong Wu Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Joyee Cheung --- src/node_builtins.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_builtins.cc b/src/node_builtins.cc index 0919f77e71b..65970ffc33a 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -560,13 +560,13 @@ void BuiltinLoader::GetCacheUsage(const FunctionCallbackInfo& args) { } if (!ToV8Value(context, env->builtins_in_snapshot) - .ToLocal(&builtins_without_cache_js)) { + .ToLocal(&builtins_in_snapshot_js)) { return; } if (result ->Set(env->context(), OneByteString(isolate, "compiledInSnapshot"), - builtins_without_cache_js) + builtins_in_snapshot_js) .IsNothing()) { return; }