mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: add initial support for optional types, IfGuardExpr codegen for if
(#11332)
This commit is contained in:
@@ -44,3 +44,9 @@ pub fn exit(c int) {
|
||||
JS.process.exit(c)
|
||||
js_throw('exit($c)')
|
||||
}
|
||||
|
||||
fn opt_ok(data voidptr, option Option) {
|
||||
#option.state = 0
|
||||
#option.err = none__
|
||||
#option.data = data
|
||||
}
|
||||
|
Reference in New Issue
Block a user