diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-07 13:46:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-07 13:49:37 -0700 |
commit | 139faf06772e4dff96aeebd9f885a1c2f8e8fb02 (patch) | |
tree | d63ef7cd9c0a91bcf2bd1afdc989fd323757f3e3 /tools | |
parent | 9841521a35ef37e6fe246acd9a7d296c92d3c6f5 (diff) |
fix outlining log message
Diffstat (limited to 'tools')
-rw-r--r-- | tools/js-optimizer.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 34fc028b..c029ab4e 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -3711,8 +3711,10 @@ function outline(ast) { } } } - ret.push(func); - printErr('... resulting sizes of ' + func[1] + ' is ' + ret.map(measureSize) + '\n'); + if (ret) { + ret.push(func); + printErr('... resulting sizes of ' + func[1] + ' is ' + ret.map(measureSize) + '\n'); + } } denormalizeAsm(func, asmData); }); |