pcjs/modules/shared/es6
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2017-01-30 15:58:24 -08:00
..
component.js Factored PDP-11 drive controller logic into a device-independent superclass (drive.js) and a device-dependent subclass (rk11.js); the RL11 controller is ready to be factored next 2017-01-28 13:39:19 -08:00
debugger.js Factored PDP-11 drive controller logic into a device-independent superclass (drive.js) and a device-dependent subclass (rk11.js); the RL11 controller is ready to be factored next 2017-01-28 13:39:19 -08:00
defines.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
diskapi.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
dumpapi.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
embed.js Final tweaks to initial sticky machine demo 2017-01-03 17:28:35 -08:00
externs.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
keys.js Perform a more conservative remapping of keyCodes for Firefox's sake 2017-01-30 15:30:44 -08:00
netlib.js Merge branch 'master' into gh-pages 2017-01-02 15:17:56 -08:00
nodebug.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
private.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
proclib.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
README.md Fixed assorted inspection errors 2016-12-21 17:40:02 -08:00
reportapi.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
save.js More Node-related module tidying (but still doesn't solve ES6 browser issues with uncompiled code) 2017-01-02 16:51:09 -08:00
state.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
strlib.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
userapi.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
usrlib.js More Node-related module tidying (but still doesn't solve ES6 browser issues with uncompiled code) 2017-01-02 16:51:09 -08:00
weblib.js More Node-related module tidying (but still doesn't solve ES6 browser issues with uncompiled code) 2017-01-02 16:51:09 -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") {...}