Bring C1Pjs exception handling up-to-date
This commit is contained in:
parent
f822efe1f0
commit
48eb5f853a
3 changed files with 3 additions and 3 deletions
|
|
@ -376,7 +376,7 @@
|
||||||
<form class="{$APPCLASS}-binding" data-value="{$type},{$binding}">
|
<form class="{$APPCLASS}-binding" data-value="{$type},{$binding}">
|
||||||
<fieldset class="{$APPCLASS}-fieldset">
|
<fieldset class="{$APPCLASS}-fieldset">
|
||||||
<input type="file"/>
|
<input type="file"/>
|
||||||
<input type="submit" value="Load" disabled="true"/>
|
<input type="submit" value="Mount" disabled="true"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
|
||||||
|
|
@ -1114,7 +1114,7 @@ C1PCPU.prototype.run = function()
|
||||||
this.halt();
|
this.halt();
|
||||||
this.update();
|
this.update();
|
||||||
this.setBusy(false);
|
this.setBusy(false);
|
||||||
this.setError(e.message);
|
this.setError(e.stack || e.message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setTimeout(function(cpu) { return function() {cpu.run();}; }(this), this.calcRemainingTime());
|
setTimeout(function(cpu) { return function() {cpu.run();}; }(this), this.calcRemainingTime());
|
||||||
|
|
|
||||||
|
|
@ -794,7 +794,7 @@ if (DEBUGGER) {
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
fCompleted = undefined;
|
fCompleted = undefined;
|
||||||
this.cpu.setError(e.message || e);
|
this.cpu.setError(e.stack || e.message);
|
||||||
}
|
}
|
||||||
if (fCompleted !== undefined) this.cIns++;
|
if (fCompleted !== undefined) this.cIns++;
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue