Add new debug option - rawExceptions - to prevent catching exceptions thrown by the VM, use for debugging the VM.

It's required to insert the new function into the stack before processing its upvalue instructions, in case it refers to itself.

Remove some, hmm, "debugging" code :)

Remove some accidentally-committed debug output

Switch from JSON.stringify for debug output to sys.inspect which doesn't bail out on circular references

Support for upvalues in functions \o/ implemented OP_GETUPVAL, and a stub for OP_SETUPVAL.

(0) -10 -6 +6 +10 +30 +100 tip

mercurial