mirror of https://github.com/vuejs/core.git
refactor(compiler-dom): use String's built-in repeat method (#6700)
This commit is contained in:
parent
3445356085
commit
b71a889f52
|
@ -20,10 +20,7 @@ describe('stringify static html', () => {
|
|||
}
|
||||
|
||||
function repeat(code: string, n: number): string {
|
||||
return new Array(n)
|
||||
.fill(0)
|
||||
.map(() => code)
|
||||
.join('')
|
||||
return code.repeat(n)
|
||||
}
|
||||
|
||||
test('should bail on non-eligible static trees', () => {
|
||||
|
|
Loading…
Reference in New Issue