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.

OP_RETURN: Support for return values from Lua functions \o/

Support for B==0 in OP_CALL (signifies params are to top of the stack)

Fix OP_RETURN to update this.frame

Implement OP_CALL for Lua functions (no return values yet)

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

mercurial