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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user