diff --git a/vlib/v/gen/js/js.v b/vlib/v/gen/js/js.v index 2aa5cde636..f55ef531dd 100644 --- a/vlib/v/gen/js/js.v +++ b/vlib/v/gen/js/js.v @@ -959,11 +959,10 @@ fn (mut g JsGen) expr(node_ ast.Expr) { ast.LockExpr { g.gen_lock_expr(node) } - ast.Nil {} - ast.NodeError {} ast.Nil { g.write('null') } + ast.NodeError {} ast.None { g.write('none__') }