add ghost(type) output, just like nasal/lib/debug.nas :-)
This commit is contained in:
parent
ce356a350e
commit
44cbca565d
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,8 @@ var string = func(o) {
|
||||||
s ~= (i == 0 ? "" : ", ") ~ _dump_var(k[i]) ~ " : " ~ string(o[k[i]]);
|
s ~= (i == 0 ? "" : ", ") ~ _dump_var(k[i]) ~ " : " ~ string(o[k[i]]);
|
||||||
|
|
||||||
return _brace("{") ~ " " ~ s ~ " " ~ _brace("}");
|
return _brace("{") ~ " " ~ s ~ " " ~ _brace("}");
|
||||||
|
} elsif (t == "ghost") {
|
||||||
|
return _angle("<") ~ _nil(ghosttype(o)) ~ _angle(">");
|
||||||
} else {
|
} else {
|
||||||
return _angle("<") ~ _vartype(t) ~ _angle(">");
|
return _angle("<") ~ _vartype(t) ~ _angle(">");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue