(n, prefix, maxN)
| 144 | // Adds spaces and prefix to number |
| 145 | // maxN is a maximum number we should have space for |
| 146 | function leftPad(n, prefix, maxN) { |
| 147 | const s = n.toString(); |
| 148 | const nchars = MathMax(2, String(maxN).length); |
| 149 | const nspaces = nchars - s.length; |
| 150 | |
| 151 | return prefix + StringPrototypeRepeat(' ', nspaces) + s; |
| 152 | } |
| 153 | |
| 154 | function markSourceColumn(sourceText, position, useColors) { |
| 155 | if (!sourceText) return ''; |
no test coverage detected
searching dependent graphs…