mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: handle Nil
This commit is contained in:
parent
c48ed52f43
commit
3f3fb5be47
@ -960,6 +960,9 @@ fn (mut g JsGen) expr(node_ ast.Expr) {
|
||||
g.gen_lock_expr(node)
|
||||
}
|
||||
ast.NodeError {}
|
||||
ast.Nil {
|
||||
g.write('null')
|
||||
}
|
||||
ast.None {
|
||||
g.write('none__')
|
||||
}
|
||||
|
@ -56,7 +56,9 @@ fn normalise_fname(name string) string {
|
||||
}
|
||||
|
||||
fn (mut runner NormalTestRunner) start(ntests int) {
|
||||
runner.all_assertsions = []&VAssertMetaInfo{cap: 1000}
|
||||
unsafe {
|
||||
runner.all_assertsions = []&VAssertMetaInfo{cap: 1000}
|
||||
}
|
||||
}
|
||||
|
||||
fn (mut runner NormalTestRunner) finish() {
|
||||
|
Loading…
Reference in New Issue
Block a user