Correct bytecode line numbers reported when breakpoints are reached

This commit is contained in:
Mitchell Plamann
2015-04-22 21:02:36 -04:00
parent d035346d2b
commit 44f10cb5c6
3 changed files with 52 additions and 7 deletions

View File

@@ -121,7 +121,12 @@ exports.testBREAKPOINT1 = function(test) {
test.ok(vm.frame.stack[0] == 23 &&
vm.frame.stack[1] == 19,
"VM stack incorrect");
test.ok(vm.bytecode_line == 19,
"VM reports incorrect line in bytecode: " + vm.bytecode_line);
result = vm.run();
test.ok(result == 1748, "VM did not resume operation correctly, gave result " + result);
test.ok(result == 1748,
"VM did not resume operation correctly, gave result " + result);
test.done();
}