Skip to content

Instantly share code, notes, and snippets.

View joe06102's full-sized avatar
🎯
Focusing

joe06102

🎯
Focusing
View GitHub Profile
This file has been truncated, but you can view the full file.
// The Module object: Our interface to the outside world. We import
// and export values on it. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. External script tag defines var Module.
// We need to check if Module already exists (e.g. case 3 above).
// Substitution will be replaced with actual code on later stage of the build,