diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-03 16:00:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-03 16:00:27 -0700 |
commit | 3ec1a85e32050de3cd8121c6b04b7e2ae6be78b1 (patch) | |
tree | ca5b9853d96aa4236c5bdaa9a0a4fcb576395fba /tools/shared.py | |
parent | 089df624ec353c27df3806298b0a2f7f85c8b208 (diff) |
fix bug with js engine being str and not list
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py index b4dc71ca..9cba8b01 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -207,11 +207,10 @@ else: # Engine tweaks -#if 'strict' not in str(SPIDERMONKEY_ENGINE): # XXX temporarily disable strict mode until we sort out some stuff -# SPIDERMONKEY_ENGINE += ['-e', "options('strict')"] # Strict mode in SpiderMonkey. With V8 we check that fallback to non-strict works too - try: if 'gcparam' not in str(SPIDERMONKEY_ENGINE): + if type(SPIDERMONKEY_ENGINE) is str: + SPIDERMONKEY_ENGINE = [SPIDERMONKEY_ENGINE] SPIDERMONKEY_ENGINE += ['-e', "gcparam('maxBytes', 1024*1024*1024);"] # Our very large files need lots of gc heap except NameError: pass |