diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-29 18:14:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-02 17:31:37 -0700 |
commit | 6e8ba9140b706ed30977e083f6d25c05af08076e (patch) | |
tree | 0b04c01236d4165e105340df911c5ae1f61d0ab1 /tools | |
parent | d229313b7dc08e40a160ace49a38acd5be5503b3 (diff) |
optimize Math.x to Math_x
Diffstat (limited to 'tools')
-rw-r--r-- | tools/js-optimizer.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 51a7bdeb..59e3919f 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -1617,12 +1617,6 @@ function normalizeAsm(func) { } } unVarify(node[1], node); - } else if (type === 'dot') { - if (node[1][0] === 'name' && node[1][1] === 'Math') { - // transform Math.max to Math_max; we forward in the latter version - node[0] = 'name'; - node[1] = 'Math_' + node[2]; - } } else if (type === 'call' && node[1][0] === 'function') { assert(!node[1][1]); // anonymous functions only data.inlines.push(node[1]); |