strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364)

This commit is contained in:
playX 2021-09-03 12:16:07 +03:00 committed by GitHub
parent 227d12f1ac
commit 08c517c966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 432 additions and 388 deletions

View file

@ -57,5 +57,9 @@ pub fn unwrap(opt string) string {
if o.state != 0 {
js_throw(o.err)
}
return opt
mut res := ''
#res = opt.data
return res
}