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

js: fix -stats compilation of tests, proper alias codegen (#11327)

This commit is contained in:
playX
2021-08-28 16:57:33 +03:00
committed by GitHub
parent 25bf68e2f1
commit 118c5fdcd8
5 changed files with 92 additions and 28 deletions

View File

@ -243,3 +243,11 @@ pub fn (mut a array) delete_last() {
[unsafe]
pub fn (a array) free() {
}
// todo: once (a []byte) will work rewrite this
pub fn (a array) bytestr() string {
res := ''
#a.arr.forEach((item) => res.str += String.fromCharCode(+item))
return res
}