From f8e9dd81e5dd245fd4a7c8431ee82f5aa62923d8 Mon Sep 17 00:00:00 2001 From: Evan Lucas Date: Wed, 21 Sep 2022 17:14:55 -0500 Subject: [PATCH] benchmark: fix startup benchmark This allows the misc/startup benchmark to run again after the renaming of the C++ `native_module` to `builtins` PR-URL: https://github.com/nodejs/node/pull/44727 Refs: https://github.com/nodejs/node/pull/44135 Reviewed-By: Luigi Pinca Reviewed-By: Daeyeon Jeong Reviewed-By: Antoine du Hamel Reviewed-By: Joyee Cheung Reviewed-By: Darshan Sen --- benchmark/fixtures/require-cachable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/fixtures/require-cachable.js b/benchmark/fixtures/require-cachable.js index 85e3a81f4e9..105652a5185 100644 --- a/benchmark/fixtures/require-cachable.js +++ b/benchmark/fixtures/require-cachable.js @@ -2,8 +2,8 @@ const { internalBinding } = require('internal/test/binding'); const { - moduleCategories: { canBeRequired } -} = internalBinding('native_module'); + builtinCategories: { canBeRequired } +} = internalBinding('builtins'); for (const key of canBeRequired) { require(`node:${key}`);