Skip to content

Commit

Permalink
benchmark: fix startup benchmark
Browse files Browse the repository at this point in the history
This allows the misc/startup benchmark to run again
after the renaming of the C++ `native_module` to `builtins`

PR-URL: nodejs/node#44727
Refs: nodejs/node#44135
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
evanlucas authored and guangwong committed Jan 3, 2023
1 parent 3e78c7d commit 40ed6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/fixtures/require-cachable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 40ed6e3

Please sign in to comment.