Skip to content

Commit 393b48e

Browse files
Trottcodebytere
authored andcommitted
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main,{
1212
functionmain({ 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
conststr=({
1818
ascii: 'foobar'.repeat(100),

0 commit comments

Comments
(0)