From 25ad49bb07c3cc4c2c7c06b931094400f0fa486e 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 776ac8f2358aca..33f44a1becd982 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -586,13 +586,13 @@ void BuiltinLoader::GetCacheUsage(const FunctionCallbackInfo& args) { } if (!ToV8Value(context, realm->builtins_in_snapshot) - .ToLocal(&builtins_without_cache_js)) { + .ToLocal(&builtins_in_snapshot_js)) { return; } if (result ->Set(context, OneByteString(isolate, "compiledInSnapshot"), - builtins_without_cache_js) + builtins_in_snapshot_js) .IsNothing()) { return; }