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:
Jeff Parsons 2017-01-01 14:02:15 -08:00 committed by Jeff Parsons
commit 138b2534e5
3 changed files with 26 additions and 16 deletions

View file

@ -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);
}