]> git.kaiwu.me - njs.git/commit
String.prototype.repeat() did not check the count parameter
authorIgor Sysoev <igor@sysoev.ru>
Fri, 4 Nov 2016 13:22:56 +0000 (16:22 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 4 Nov 2016 13:22:56 +0000 (16:22 +0300)
commitb452dffd26de5bea8ee474dad4985a362f030964
tree2e99024a519e72e32cfc06991cd77251b9bfba1a
parent8959e1072c5a9826354606e116aa6716dda9bd13
String.prototype.repeat() did not check the count parameter
for single character strings.  The count parameter should be
checked also for empty string.

In collaboration with Andrey Zelenkov and Valentin Bartenev.
njs/njs_string.c
njs/test/njs_unit_test.c