Added typeof opcode to verify variable types.
This commit is contained in:
parent
d7843274ee
commit
7e9f24114e
6 changed files with 78 additions and 1 deletions
1
src/vm.c
1
src/vm.c
|
|
@ -273,6 +273,7 @@ void vm_run(VM *vm, Bytecode *entry) {
|
|||
#include "vm/print.c"
|
||||
#include "vm/to_number.c"
|
||||
#include "vm/to_string.c"
|
||||
#include "vm/typeof.c"
|
||||
|
||||
default:
|
||||
if (!opcode_is_valid(inst.op)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue