aboutsummaryrefslogtreecommitdiff
path: root/src/shell.js
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-07-22 15:04:46 -0700
committerAnthony Pesch <inolen@gmail.com>2013-07-24 14:50:33 -0700
commit005113837b0969b193c6c485f674a132140e39d1 (patch)
tree54569fa8c79cbf0a472930ab088998e7110c7956 /src/shell.js
parent67b321c1617bd65bf9f24702676c2fdf51e51bb4 (diff)
eliminate default Module global
Diffstat (limited to 'src/shell.js')
-rw-r--r--src/shell.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/shell.js b/src/shell.js
index 1f987926..11420123 100644
--- a/src/shell.js
+++ b/src/shell.js
@@ -1,9 +1,4 @@
-try {
- this['Module'] = Module;
- Module.test;
-} catch(e) {
- this['Module'] = Module = {};
-}
+var Module = typeof {{{ EXPORT_NAME }}} !== 'undefined' ? {{{ EXPORT_NAME }}} : {};
// The environment setup code below is customized to use Module.
// *** Environment setup code ***
@@ -150,4 +145,3 @@ if (!Module['postRun']) Module['postRun'] = [];
{{BODY}}
// {{MODULE_ADDITIONS}}
-