pcjs/modules/shared/es6
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeff Parsons 6c21a2722c Merge branch 'master' into gh-pages
# Conflicts:
#	modules/shared/es6/component.js
2017-01-02 16:54:07 -08:00
..
component.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
debugger.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -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 Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
externs.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
keys.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -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") {...}