diff options
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: |