make it possible to render a nil
This commit is contained in:
parent
12101bc6e1
commit
4681edd60f
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ fn renderRec(vm: *Vm, canvas: *Canvas, val: Value, depth: usize, max_depth: usiz
|
|||
.{max_depth},
|
||||
);
|
||||
}
|
||||
if (val == .nil) return;
|
||||
if (val != .ref) return notAScribble(vm, val);
|
||||
|
||||
switch (val.ref.*) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue