mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
make chr_repeat more defensive for invalid parameters
This commit is contained in:
parent
13420f31ce
commit
f9dd551448
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ String.chr_repeat = function(chr, count)
|
|||
{
|
||||
var result = "";
|
||||
|
||||
while(count--)
|
||||
while(count-- > 0)
|
||||
{
|
||||
result += chr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue