aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-20 19:03:14 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-20 19:03:14 -0800
commitacbb1e6a0b49facc66e14891556e0859f9609868 (patch)
tree3eec5250316f278054ff7c0aa901ca22cb55cb4b /tools
parente82689262a0ab476d5a5bf11476fbb4532b4b638 (diff)
generate strict mode javascript
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 668e609b..55a8412a 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -15,6 +15,11 @@ LLVM_AS=os.path.expanduser(os.path.join(LLVM_ROOT, 'llvm-as'))
LLVM_DIS=os.path.expanduser(os.path.join(LLVM_ROOT, 'llvm-dis'))
LLVM_DIS_OPTS = ['-show-annotations'] # For LLVM 2.8+. For 2.7, you may need to do just []
+# Engine tweaks
+
+if '-s' not in SPIDERMONKEY_ENGINE:
+ SPIDERMONKEY_ENGINE += ['-s'] # Strict mode in SpiderMonkey. With V8 we check that fallback to non-strict works too
+
# Utilities
def timeout_run(proc, timeout, note):