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:
Rich Trott authored and Shelley Vohr committed 2020-03-16 19:42:00 -07:00
1 parent 4f177c4f63
commit 393b48e744
1 file changed
+1 -1
+1 -1
View File
@@ -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),