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: #44727
Refs: #44135
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Daeyeon Jeong <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
  • Loading branch information
evanlucas authored Sep 21, 2022
1 parent 62e182c commit 962b9ab
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 962b9ab

Please sign in to comment.