1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

js: fix string.bytes codegen, readline, add tests for strings (#12060)

This commit is contained in:
playX
2021-10-04 18:28:30 +03:00
committed by GitHub
parent e94e08475d
commit 8d1ba52d0c
14 changed files with 399 additions and 30 deletions

View File

@ -9,10 +9,8 @@ pub fn repeat(c byte, n int) string {
}
pub fn repeat_string(s string, n int) string {
return ''
/*
// TODO: uncomment this. It is commented for now, so that `v doc strings` works
res := # s.repeat(n)
res := ''
#res.str = s.str.repeat(n.valueOf())
return res
*/
}