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 /src/settings.js | |
parent | 4ae305542c80f31b06c5e8325c63ade2bb4a3f33 (diff) |
NO_DYNAMIC_EXECUTION option to disable features using eval() or new Function()
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js index 3289eace..bdb149e3 100644 --- a/src/settings.js +++ b/src/settings.js @@ -502,6 +502,11 @@ var JS_CHUNK_SIZE = 10240; // Used as a maximum size before breaking up expressi var EXPORT_NAME = 'Module'; // Global variable to export the module as for environments without a standardized module // loading system (e.g. the browser and SM shell). +var NO_DYNAMIC_EXECUTION = 0; // When enabled, we do not emit eval() and new Function(), which disables some functionality + // (causing runtime errors if attempted to be used), but allows the emitted code to be + // acceptable in places that disallow dynamic code execution (chrome packaged app, non- + // privileged firefox app, etc.) + var RUNNING_JS_OPTS = 0; // whether js opts will be run, after the main compiler var COMPILER_ASSERTIONS = 0; // costly (slow) compile-time assertions |