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 <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 RafaelGSS committed Sep 26, 2022
1 parent 10a0d75 commit f497368
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 f497368

Please sign in to comment.