pcjs/modules/shared/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2015-07-29 12:06:29 -07:00
..
component.js 80386 CPU detection fix 2015-07-14 16:32:41 -07:00
defines.js Added code to extract the machine XML version number when running DEBUG-only 2015-07-28 12:45:29 -07:00
diskapi.js v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
dumpapi.js v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
embed.js v1.18.6: The Microsoft Edge/Windows 10 (aka Screwed by Microsoft Again) release 2015-07-29 12:06:29 -07:00
externs.js v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
netlib.js Added Compaq DeskPro 386 ROMs 2015-02-22 15:42:54 -08:00
nodebug.js dataSize and addrSize tweaks 2015-01-30 12:00:12 -08:00
proclib.js v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
README.md Last of the link fixes (I hope) 2015-07-19 09:07:50 -07:00
reportapi.js v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
sockets.js v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
strlib.js Assorted V86-mode fixes and IOPM support 2015-07-24 16:53:39 -07:00
userapi.js v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
usrlib.js Eliminated block size constraints, added support for bit fields 2015-04-27 18:26:54 -07:00
weblib.js Support for (future) Control Panel animation 2015-01-23 14:43:32 -08:00

Shared 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") {...}