mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user