mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
benchmark: fix getStringWidth() benchmark
8fb5fe28a4 broke the benchmark for
getStringWidth(). This fixes it up by updating the argument to
`require()` to retrieve `getStringWidth()` from the new internal module
location.
PR-URL: https://github.com/nodejs/node/pull/31476
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
4f177c4f63
commit
393b48e744
1 file changed
+1
-1
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
|
||||
function main({ n, type }) {
|
||||
// Default value for testing purposes.
|
||||
type = type || 'ascii';
|
||||
const { getStringWidth } = require('internal/readline/utils');
|
||||
const { getStringWidth } = require('internal/util/inspect');
|
||||
|
||||
const str = ({
|
||||
ascii: 'foobar'.repeat(100),
|
||||
|
||||
Reference in new issue
Block a user