diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-26 14:36:24 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-26 14:55:09 -0700 |
commit | 818520b1f05d7cf09ba9bb454fb7dcda7ea5e391 (patch) | |
tree | 12ddf2f7b7b7afa042587a45a795c85a99a4050d /tools | |
parent | 3f855a246e873ca2c862e3747f530cd0544f2f25 (diff) |
fail on trying to split up js optimizer on unGlobalize
Diffstat (limited to 'tools')
-rw-r--r-- | tools/js-optimizer.js | 3 | ||||
-rw-r--r-- | tools/shared.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index bd591871..0e921cc6 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -274,6 +274,9 @@ function dumpSrc(ast) { // undefined, null. These cut down on size, but do not affect gzip size // and make JS engine's lives slightly harder (?) function unGlobalize(ast) { + + throw 'this is deprecated!'; // and does not work with parallel compilation + assert(ast[0] == 'toplevel'); var values = {}; // Find global renamings of the relevant values diff --git a/tools/shared.py b/tools/shared.py index 6150060b..a9c97b69 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -969,9 +969,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e @staticmethod def js_optimizer(filename, passes, maybe_big=True): if maybe_big: - # When we split up, we cannot do unGlobalize, the only pass which is *not* function-local - args = [filter(lambda p: p != 'unGlobalize', passes)] - ret = Building.splitter(filename, addendum='.jo.js', func=Building.js_optimizer, args=args) + ret = Building.splitter(filename, addendum='.jo.js', func=Building.js_optimizer, args=[passes]) if ret: return ret if type(passes) == str: |