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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue