[Pkg-javascript-commits] [uglifyjs] 09/228: update test (#1441)
Jonas Smedegaard
dr at jones.dk
Sat Apr 15 14:25:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository uglifyjs.
commit 7f8d72d9d37396f2da05d5d824f74bd414c30119
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date: Thu Jan 26 19:59:32 2017 +0800
update test (#1441)
improved reduce_vars & binary operands produce more optimal results
---
test/compress/arrays.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/compress/arrays.js b/test/compress/arrays.js
index 807ba20..77ef761 100644
--- a/test/compress/arrays.js
+++ b/test/compress/arrays.js
@@ -76,6 +76,7 @@ constant_join_2: {
for_loop: {
options = {
unsafe : true,
+ unused : true,
evaluate : true,
reduce_vars : true
};
@@ -110,7 +111,7 @@ for_loop: {
function f1() {
var a = [1, 2, 3];
- for (var i = 0, len = 3; i < len; i++)
+ for (var i = 0; i < 3; i++)
console.log(a[i]);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list