Fix new usage for builtin objects (#6968)

This commit is contained in:
fisker Cheung authored and Simon Lydell committed 2019-11-17 11:36:21 +01:00
1 parent 57f0dd56dd
commit eac6fba2c3
11 files changed
+17 -14

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ function fitTerminal(input) {
const columns = Math.min(process.stdout.columns || 40, 80);
const WIDTH = columns - stringWidth(OK) + 1;
if (input.length < WIDTH) {
input += Array(WIDTH - input.length).join(chalk.dim("."));
input += new Array(WIDTH - input.length).join(chalk.dim("."));
}
return input;
}