pcjs/modules/shared/es6
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2016-12-30 14:51:32 -08:00
..
component.js Node pdp11 utility can now properly initialize all machine components (although there are still some type issues with some of the properties we're extracting from the machine XML) 2016-12-29 13:08:23 -08:00
debugger.js PDP-11 command-line (Node-based) operation is finally working 2016-12-30 14:51:32 -08:00
defines.js Some minor changes to make it easier to load a machine in the Node environment 2016-12-27 22:05:59 -08:00
diskapi.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
dumpapi.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
embed.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
externs.js v1.31.0 marks our first transition to ES6 classes, but only for PDPjs initially (which is why there must be both /lib and /es6 files in the shared folder for now) 2016-12-18 11:31:55 -08:00
keys.js Converted PC8080 to ES6 2016-12-28 10:03:58 -08:00
netlib.js PDP-11 command-line (Node-based) operation is finally working 2016-12-30 14:51:32 -08:00
nodebug.js v1.31.0 marks our first transition to ES6 classes, but only for PDPjs initially (which is why there must be both /lib and /es6 files in the shared folder for now) 2016-12-18 11:31:55 -08:00
private.js v1.31.0 marks our first transition to ES6 classes, but only for PDPjs initially (which is why there must be both /lib and /es6 files in the shared folder for now) 2016-12-18 11:31:55 -08:00
proclib.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
README.md Fixed assorted inspection errors 2016-12-21 17:40:02 -08:00
reportapi.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
save.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
state.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
strlib.js PDP-11 command-line (Node-based) operation is finally working 2016-12-30 14:51:32 -08:00
userapi.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
usrlib.js Let's switch from import back to require, to simplify future Node support 2016-12-27 17:16:18 -08:00
weblib.js Node pdp11 utility can now properly initialize all machine components (although there are still some type issues with some of the properties we're extracting from the machine XML) 2016-12-29 13:08:23 -08:00

Shared (ES6) Sources

This folder contains a mix of shared code, with some files used only by Node (server) modules, some used only by Browser (client) modules, and others used by both.

At the moment, only a few files are completely agnostic; eg: strlib.js and usrlib.js. One give-away is that neither contain references to any globals (although references to each other would be fine).

netlib.js is appropriate only for Node modules, because it contains code that relies on Node's global Buffer object, as indicated by:

/* global Buffer: false */

weblib.js is appropriate only for client modules, because it contains code that relies on the browser's global window object, as indicated by:

/* global window: true */

We declare window modifiable (true) so that defines.js can set global.window to false when running within Node, allowing any other code to test the existence of window with a simple:

if (window) {...}

instead of:

if (typeof window !== "undefined") {...}