29:62f3df8ed204 | 30:10fd886c4e8a |
---|---|
12 var OP_CALL = 28; | 12 var OP_CALL = 28; |
13 var OP_RETURN = 30; | 13 var OP_RETURN = 30; |
14 var OP_CLOSURE = 36; | 14 var OP_CLOSURE = 36; |
15 | 15 |
16 var debugMode = false; | 16 var debugMode = false; |
17 var rawExceptions = false; | |
18 | 17 |
19 function LValue(type, value) | 18 function LValue(type, value) |
20 { | 19 { |
21 this.type = type||"nil"; | 20 this.type = type||"nil"; |
22 this.value = value||null; | 21 this.value = value||null; |
421 testvm.run(f); | 420 testvm.run(f); |
422 } | 421 } |
423 catch(e) | 422 catch(e) |
424 { | 423 { |
425 print("Error: " + e); | 424 print("Error: " + e); |
426 if(stack in e) | 425 if("stack" in e) |
427 print(e.stack); | 426 print(e.stack); |
428 } | 427 } |