js: port more methods (os, builtin) (#12238)

This commit is contained in:
playX 2021-10-20 16:02:21 +03:00 committed by GitHub
parent 7c1fff3495
commit 57c79770b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 83 additions and 8 deletions

View file

@ -910,3 +910,10 @@ pub fn (s string) index(search string) ?int {
}
return res
}
pub fn (_rune string) utf32_code() int {
res := 0
#res.val = s.str.charCodeAt()
return res
}