mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
js: fix string.bytes codegen, readline, add tests for strings
(#12060)
This commit is contained in:
parent
e94e08475d
commit
8d1ba52d0c
14 changed files with 399 additions and 30 deletions
|
@ -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
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue