diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-29 13:38:49 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-29 13:38:49 -0700 |
commit | 82cafff17306df64c31224c1e343458a6096ff36 (patch) | |
tree | 63ade4fb328d26ec62fadac00964fedd61904403 /src/shell.js | |
parent | c30c31661c0db498b2189faefa288da6ab30dfc0 (diff) |
fix test_scriptaclass
Diffstat (limited to 'src/shell.js')
-rw-r--r-- | src/shell.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shell.js b/src/shell.js index 952f6899..2082eeae 100644 --- a/src/shell.js +++ b/src/shell.js @@ -9,6 +9,10 @@ // case, where this code here is minified but Module was defined // elsewhere (e.g. case 4 above). We also need to check if Module // already exists (e.g. case 3 above). +// Note that if you want to run closure, and also to use Module +// after the generated code, you will need to define var Module = {}; +// before the code. Then that object will be used in the code, and you +// can continue to use Module afterwards as well. var Module; if (!Module) Module = eval('(function() { try { return {{{ EXPORT_NAME }}} || {} } catch(e) { return {} } })()'); |