summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/imachine.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/imachine.js b/www/js/imachine.js
index 1d539dd..a256019 100644
--- a/www/js/imachine.js
+++ b/www/js/imachine.js
@@ -21,6 +21,9 @@ html5ks.imachine = (function () {
case "undefined":
break;
case "string": // jump_out
+ if (!html5ks.data.imachine[inst]) {
+ throw new Error("label does not exist");
+ }
this.run(inst);
break;
case "object":
@@ -69,7 +72,7 @@ html5ks.imachine = (function () {
break;
default:
console.error("unknown imachine inst");
- console.error(inst);
+ console.log(inst);
}
}
}.bind(this);