Made Booleans a first-class type. (0.23.0)
This commit is contained in:
parent
bd51aea318
commit
95eba1eb12
12 changed files with 131 additions and 18 deletions
|
|
@ -12,6 +12,7 @@ case OP_TYPEOF: {
|
|||
const char *tname = "Unknown";
|
||||
switch (v.type) {
|
||||
case VAL_INT: tname = "Number"; break;
|
||||
case VAL_BOOL: tname = "Boolean"; break;
|
||||
case VAL_STRING: tname = "String"; break;
|
||||
case VAL_FUNCTION: tname = "Function"; break;
|
||||
case VAL_ARRAY: tname = "Array"; break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue