Fixed a few (spurious?) WebStorm inspection warnings, and added some band-aid code to netlib.js so that PDP-11 machines running in the Node environment can fetch all their resources, whether local or remote
This commit is contained in:
parent
2a96d37c14
commit
138b2534e5
3 changed files with 26 additions and 16 deletions
|
|
@ -327,7 +327,7 @@ class ComputerPDP11 extends Component {
|
|||
switch(type) {
|
||||
case Str.TYPES.NUMBER:
|
||||
value = +value;
|
||||
if (isNaN(value)) value = defaultValue || 0;
|
||||
if (isNaN(/** @type {number} */(value))) value = defaultValue || 0;
|
||||
break;
|
||||
case Str.TYPES.BOOLEAN:
|
||||
value = (value == "true");
|
||||
|
|
@ -413,6 +413,7 @@ class ComputerPDP11 extends Component {
|
|||
}
|
||||
}
|
||||
if (DEBUG && this.messageEnabled()) this.printMessage("ComputerPDP11.wait(ready)");
|
||||
//noinspection JSUnresolvedFunction
|
||||
fn.call(this, parms);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1595,6 +1595,7 @@ PDP11.opRTI = function(opCode)
|
|||
PDP11.opRTS = function(opCode)
|
||||
{
|
||||
if (opCode & 0x08) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
return;
|
||||
}
|
||||
|
|
@ -1739,6 +1740,7 @@ PDP11.opSOB = function(opCode)
|
|||
PDP11.opSPL = function(opCode)
|
||||
{
|
||||
if (!(opCode & 0x08) || this.model < PDP11.MODEL_1145) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
return;
|
||||
}
|
||||
|
|
@ -2311,6 +2313,7 @@ PDP11.op8Xnn_1140 = function(opCode)
|
|||
PDP11.op8DXn_1140 = function(opCode)
|
||||
{
|
||||
if (this.model < PDP11.MODEL_1145) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue