summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2013-07-06 20:42:23 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2013-07-06 20:42:23 -0400
commitf0f6967a1b9782b4c21ec9cac39248ece5229962 (patch)
treed66a4eca39cf5b71ff8d4b88483540d8e278fd37 /www/js
parentc191f104460a5b3f149863b2cdf9db3051f978c9 (diff)
downloadhtml5ks-f0f6967a1b9782b4c21ec9cac39248ece5229962.tar.xz
html5ks-f0f6967a1b9782b4c21ec9cac39248ece5229962.zip
do work
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);