Bring C1Pjs exception handling up-to-date

This commit is contained in:
Jeff Parsons 2015-04-30 14:12:01 -07:00 committed by jeffpar
commit 48eb5f853a
3 changed files with 3 additions and 3 deletions

View file

@ -376,7 +376,7 @@
<form class="{$APPCLASS}-binding" data-value="{$type},{$binding}">
<fieldset class="{$APPCLASS}-fieldset">
<input type="file"/>
<input type="submit" value="Load" disabled="true"/>
<input type="submit" value="Mount" disabled="true"/>
</fieldset>
</form>
</xsl:when>

View file

@ -1114,7 +1114,7 @@ C1PCPU.prototype.run = function()
this.halt();
this.update();
this.setBusy(false);
this.setError(e.message);
this.setError(e.stack || e.message);
return;
}
setTimeout(function(cpu) { return function() {cpu.run();}; }(this), this.calcRemainingTime());

View file

@ -794,7 +794,7 @@ if (DEBUGGER) {
}
catch(e) {
fCompleted = undefined;
this.cpu.setError(e.message || e);
this.cpu.setError(e.stack || e.message);
}
if (fCompleted !== undefined) this.cIns++;
/*