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 juanarbol committed Oct 11, 2022
1 parent 8d3cb6c commit 2e87cdd
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 2e87cdd

Please sign in to comment.