Skip to content

Commit 393b48e

Browse files
Trottcodebytere
authored andcommittedMar 17, 2020
benchmark: fix getStringWidth() benchmark
8fb5fe2 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: #31476 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 4f177c4 commit 393b48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎benchmark/misc/getstringwidth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
1212
function main({ n, type }) {
1313
// Default value for testing purposes.
1414
type = type || 'ascii';
15-
const { getStringWidth } = require('internal/readline/utils');
15+
const { getStringWidth } = require('internal/util/inspect');
1616

1717
const str = ({
1818
ascii: 'foobar'.repeat(100),

0 commit comments

Comments
 (0)
Please sign in to comment.