diff options
| author | Alon Zakai <alonzakai@gmail.com> | 2013-03-08 18:53:17 -0800 | 
|---|---|---|
| committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-08 18:53:17 -0800 | 
| commit | 0d0ce4f677f293697123d4e237ca446dbc3fcc27 (patch) | |
| tree | 646d18d5cddcd677160002c35c96708ae9d949ac /tools/js_optimizer.py | |
| parent | e0fe8d85edff16483f0fa1e82653f0415c703cf2 (diff) | |
fix another name collision
Diffstat (limited to 'tools/js_optimizer.py')
| -rw-r--r-- | tools/js_optimizer.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py index 8c5edefb..fda5e77d 100644 --- a/tools/js_optimizer.py +++ b/tools/js_optimizer.py @@ -47,14 +47,14 @@ class Minifier:      for a in init_possibles:        for b in later_possibles:          if len(self.names) >= MAX_NAMES: break -        if a in 'id' and b in string.digits: continue # TODO: minify registerize names +        if a in 'ida' and b in string.digits: continue # TODO: minify registerize names          curr = a + b          if curr not in INVALID_2: self.names.append(curr)      for a in init_possibles:        for b in later_possibles:          for c in later_possibles:            if len(self.names) >= MAX_NAMES: break -          if a in 'id' and b in string.digits and c in string.digits: continue # TODO: minify registerize names +          if a in 'ida' and b in string.digits and c in string.digits: continue # TODO: minify registerize names            curr = a + b + c            if curr not in INVALID_3: self.names.append(curr)      #print >> sys.stderr, self.names @@ -167,6 +167,7 @@ EMSCRIPTEN_FUNCS();        post = end_funcs_marker + asm_shell_post + post        minify_info = minifier.serialize() +      #if DEBUG: print >> sys.stderr, 'minify info:', minify_info    else:      pre = ''      post = '' | 
