Permalink
Browse files

use throw instead of die

  • Loading branch information...
NotFound committed Oct 23, 2011
1 parent 800af39 commit e08fde4d1ab0b4cc2b6c01c1f2be73f035bc645a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/wasix.winxed
View
@@ -409,7 +409,7 @@ function dimoffset(runner, m, indexes)
int vind = index;
int dim = dims[i];
if (vind > dim)
- die('return 0');
+ throw 'return 0';
offset = offset + mult * vind;
mult = mult * dim;
}
@@ -3029,7 +3029,7 @@ function main(argv)
int argc = argv;
if (argc > 0) {
if (runner.load(argv[0], null, 0)) {
- die("Cannot load program");
+ throw "Cannot load program";
}
if (opt_l == null)
runner.runstart();

0 comments on commit e08fde4

Please sign in to comment.