diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-29 12:49:42 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-29 13:47:02 -0700 |
commit | b2e680a109d2a8fbc84e58a2c31b619671a78e8c (patch) | |
tree | b43d073b09705a3bdcba0c261d637df625438a19 /emcc | |
parent | 4ae305542c80f31b06c5e8325c63ade2bb4a3f33 (diff) |
NO_DYNAMIC_EXECUTION option to disable features using eval() or new Function()
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1320,6 +1320,8 @@ try: logging.warning('disabling closure because debug info was requested') closure = False + assert not (shared.Settings.NO_DYNAMIC_EXECUTION and closure), 'cannot have both NO_DYNAMIC_EXECUTION and closure compiler enabled at the same time' + if closure: shared.Settings.CLOSURE_COMPILER = 1 assert os.path.exists(shared.CLOSURE_COMPILER), logging.error('fatal: Closure compiler (%s) does not exist', shared.CLOSURE_COMPILER) |