aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-29 12:49:42 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-29 13:47:02 -0700
commitb2e680a109d2a8fbc84e58a2c31b619671a78e8c (patch)
treeb43d073b09705a3bdcba0c261d637df625438a19 /emcc
parent4ae305542c80f31b06c5e8325c63ade2bb4a3f33 (diff)
NO_DYNAMIC_EXECUTION option to disable features using eval() or new Function()
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 2 insertions, 0 deletions
diff --git a/emcc b/emcc
index e55990df..37a17ab1 100755
--- a/emcc
+++ b/emcc
@@ -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)