Commit Graph

  • 1e96ac3ed7 improve --beautify bracketize reduce whitespaces from if-else statements alexlamsl 2017-02-11 02:08:41 +0800
  • 3d5d152b60 add .gitattributes with *.js linefeed rule kzc 2017-02-10 22:05:47 -0500
  • ea00f1ab35 add benchmark & JetStream tests - test/benchmark.js measures performance - test/jetstream.js verifies correctness - configurable mangle/compress/output options alexlamsl 2017-02-09 17:23:13 +0800
  • 81f1df14d7 in mangle_names there is a check that the variable name is legal and that it is not a reserved word. This should apply to propsmangle as well. Anat Dagan 2017-02-10 14:13:47 +0200
  • 73bc25bf66 improve reduce_vars and fix a bug - update modified flag between compress() passes - support IIFE arguments - fix corner case with multiple definitions alexlamsl 2017-02-08 16:13:31 +0800
  • 58d4dbfe50 Merge 55267a76b3 into 7f8d72d9d3 Demis Palma ツ 2017-02-09 12:28:52 +0000
  • d0d37f8e2e rename illegal_mangled_names to illegalmangled Anat Dagan 2017-02-09 13:41:53 +0200
  • c7f5c6b36b add --illegalmangled option. list of names that are not o be assigned to vars during mangle/propmangle. added javascript reserved words as default. This fixes current issue that in some constalations uglify-js mangles properties to js reserved words e.g. if Anat Dagan 2017-02-09 13:31:51 +0200
  • 96e5f90907 Add prefix to property name after mangling David BRETIN 2017-02-08 09:38:13 +0100
  • 513266ae86 Merge a26529df28 into 7f8d72d9d3 kzc 2017-02-09 09:25:58 +0000
  • 1f34538576 add support-ie7 option when true, catch vars are considered in the global scope. https://github.com/mishoo/UglifyJS2/issues/1039 Anat Dagan 2017-02-09 11:22:27 +0200
  • 33472c6fee evaluate AST_SymbolRef as parameter fix invalid boolean conversion now exposed in make_node_from_constant() alexlamsl 2017-02-09 11:59:00 +0800
  • cd167d112d improve keep_fargs & keep_fnames - utilise in_use_ids instead of unreferenced() - drop_unused now up-to-date for subsequent passes alexlamsl 2017-02-08 22:34:55 +0800
  • 2862b36e47 Update propmangle.js David BRETIN 2017-02-08 09:59:49 +0100
  • fddd6ba387 Add prefix for mangle name properties David BRETIN 2017-02-08 09:51:25 +0100
  • 1a23c304de Add "mangle-prefix" arguments David BRETIN 2017-02-08 09:50:06 +0100
  • 4bddd5c5a2 Avoid using exports when they are not defined (like running in a browser). Ondřej Španěl 2017-02-08 09:22:39 +0100
  • 263fb4c2d9 allow global_defs to pass in objects and arrays - no longer throw errors against objects - now depends on evaluate - unsafe when using objects - support "a.b":1 on both cli & API - emit warning if variable is modified alexlamsl 2017-02-06 18:59:39 +0800
  • 32003fb54b inline Function() as code - improve upon #203 - bail out on any local/global variable collisions alexlamsl 2017-02-04 16:01:59 +0800
  • c19eed46dd fix duplicated test names alexlamsl 2017-02-03 02:49:47 +0800
  • 3232dd4d89 handle AST_Seq elements in AST_Seq.from_array() alexlamsl 2017-02-02 03:18:16 +0800
  • 5088aeedac add documentation alexlamsl 2017-02-02 01:52:05 +0800
  • 73a9aa0c06 reduce risk alexlamsl 2017-02-02 01:49:02 +0800
  • 7413899ad4 minor tweak to sequence manipulations - loop through AST_Seq chain instead of recursion - avoid deep-cloning in lift_sequences() - AST_Seq.car should never be null or AST_Seq - AST_Seq.cdr should never be null alexlamsl 2017-02-01 21:33:42 +0800
  • 7969146847 -c sequences=N suboptimal at N expression cutoff alexlamsl 2017-02-01 10:24:07 +0800
  • 1fd8caaf00 clean up negate_iife - remove extra tree scanning phase for negate_iife - negate_iife now only deals with the narrowest form, i.e. IIFE sitting directly under AST_SimpleStatement - booleans, conditionals etc. will now take care the rest via more accurate accounting - a(); void b(); => a(); b(); alexlamsl 2017-01-31 00:37:16 +0800
  • ebd2d98c04 improve string concatenation shuffle associative operations to minimise parentheses and aid other uglification efforts alexlamsl 2017-01-31 20:11:07 +0800
  • 6a091571d8 tweak do-while loops - do{...}while(false) => {...} - clean up AST_While logic alexlamsl 2017-01-31 05:18:16 +0800
  • 9098f2b826 fixes & improvements to [].join() alexlamsl 2017-01-31 16:44:41 +0800
  • 8683fbc1d1 Remove duplicated code Anthony Van de Gejuchte 2017-01-31 23:00:15 +0100
  • cebff96bb2 drop unused: toplevel, assign-only - assign statement does not count towards variable usage by default - only works with assignments on the same scope level as declaration - can be disabled with unused set to "keep_assign" - toplevel to drop unused top-level variables and/or functions - top_retain to whitelist top-level exceptions alexlamsl 2017-01-29 23:56:52 +0800
  • d9e9662b71 Merge b4dc82bd56 into 4bd31607f6 Anthony Van de Gejuchte 2017-01-29 14:50:19 +0000
  • 17488bedbe fix stray else in compress with conditionals=false kzc 2017-01-28 22:37:18 -0500
  • 58036cd0cc Support marking a call as pure kzc 2017-01-28 20:37:04 -0500
  • 022f285604 enable typeof "undefined" for general use move out of unsafe, guard corner case with screw_id8 instead alexlamsl 2017-01-28 18:36:10 +0800
  • 60899d5b5b fix crash in unsafe replacement of undefined remove extraneous call to AST_SymbolRef.reference() alexlamsl 2017-01-27 16:56:53 +0800
  • 0b196d93f2 remove unused AST_Scope.nesting & AST_SymbolRef.frame they are computed but never used alexlamsl 2017-01-27 18:07:54 +0800
  • 49a36f194e fix corner case in keep_fnames happens when inner function: - just below top level - not referenced - unused is disabled alexlamsl 2017-01-28 02:49:22 +0800
  • 3d0106a784 Improve optimizing function() { if(c){return foo} bar();} Anthony Van de Gejuchte 2017-01-25 15:22:37 +0100
  • 4f827f327d Merge fd38acae43 into 4bd31607f6 Richard van Velzen 2017-01-26 18:55:12 +0000
  • 7126c99470 Merge 79f126ccbe into 4bd31607f6 Anthony Van de Gejuchte 2017-01-26 18:55:12 +0000
  • 4bd31607f6 Merge branch 'master' into harmony Richard van Velzen 2017-01-26 13:02:22 +0100
  • 7f8d72d9d3 update test (#1441) Alex Lam S.L 2017-01-26 19:59:32 +0800
  • ec322df1ba update test improved reduce_vars & binary operands produce more optimal results alexlamsl 2017-01-26 19:46:45 +0800
  • 1eaa211e09 fix mangling collision with keep_fnames (#1431) Alex Lam S.L 2017-01-26 19:18:28 +0800
  • 0610c020b1 optimise binary operands with evaluate() (#1427) Alex Lam S.L 2017-01-26 19:16:50 +0800
  • 0d7d4918eb augment evaluate to extract within objects (#1425) Alex Lam S.L 2017-01-26 19:14:18 +0800
  • 4728bc73ad Allow parsing regexp after arrow token (#1439) Anthony Van de Gejuchte 2017-01-26 12:06:46 +0100
  • 41006cc9c7 Allow parsing regexp after arrow token Anthony Van de Gejuchte 2017-01-26 00:28:38 +0100
  • 35da3fef63 pass mangle options to figure_out_scope() bring command-line in line with minify() alexlamsl 2017-01-24 11:49:23 +0800
  • b785a95443 Destructuring consistency fixes Anthony Van de Gejuchte 2017-01-05 15:39:52 +0100
  • 280abda06f pass mangle options to figure_out_scope() bring command-line in line with minify() alexlamsl 2017-01-23 23:13:21 +0800
  • ff8d96c1e5 Merge 1faefbb038 into 48284844a4 kzc 2017-01-23 08:08:57 +0000
  • e2161e3b05 Merge 587dcbf96f into 48284844a4 kzc 2017-01-23 08:08:57 +0000
  • 4b4c7db0c2 fix mangling collision with keep_fnames fixes #1423 alexlamsl 2017-01-20 17:20:58 +0800
  • 9c794844af fix mangling collision with keep_fnames fixes #1423 alexlamsl 2017-01-21 01:30:27 +0800
  • af0a5fb20d augment evaluate to extract within objects - gated by unsafe - replaces previous optimisation specific to String.length - "123"[0] => 1 - [1, 2, 3][0] => 1 - [1, 2, 3].length => 3 - does not apply to objects with overridden prototype functions alexlamsl 2017-01-15 18:39:56 +0800
  • 48284844a4 add missing LHS cases which global_defs should avoid alexlamsl 2017-01-17 17:33:40 +0800
  • 52ce9a333c Fix compression with unused containing destructuring Anthony Van de Gejuchte 2016-10-31 00:10:52 +0100
  • abbeb266b5 [ES6] output parens for yield when parented by AST_Dot or AST_Sub (#1419) kzc 2017-01-10 14:19:32 -0500
  • ec2e5fa3a2 Have minify() and tests use figure_out_scope() as uglifyjs CLI does kzc 2016-12-21 10:52:30 -0500
  • da17766ddd Add preventive test involving non-ascii function identifiers Anthony Van de Gejuchte 2016-11-30 21:54:23 +0100
  • 05a9c02b75 optimise binary operands with evaluate() - remove call to evaluate() in is_constant() and let nested optimize() does its job instead - reject RegExp in is_constant() and remove special case logic under collapse_vars - operands to conditionals optimisation are now always evaluate()-ed - throw error in constant_value() instead of returning undefined to catch possible bugs, similar to make_node_from_constant() - optimise binary boolean operators under evaluate instead of conditionals alexlamsl 2017-01-18 01:12:09 +0800
  • 1aade735d0 make sure expression is AST_Binary alexlamsl 2017-01-19 17:28:47 +0800
  • b11c5151bc Fix regression with non-ascii function identifiers Anthony Van de Gejuchte 2016-11-30 21:50:31 +0100
  • 0913db8c84 Add note about name mangling when using --mangle-props=unquoted (#1314) Wiktor Kwapisiewicz 2016-11-30 14:54:15 +0100
  • 69b7c5cce0 add missing LHS cases which global_defs should avoid alexlamsl 2017-01-17 17:33:40 +0800
  • 1aa187ed4b Merge 360628de96 into 5c7705fcad Richard van Velzen 2017-01-13 15:33:37 +0000
  • b12b954e84 Merge 32839dc55a into 5c7705fcad RefinedSoftwareLLC 2017-01-13 15:33:34 +0000
  • 17a32d288b Merge 66f9a749e3 into 5c7705fcad Nikita Bystrov 2017-01-12 22:28:00 +0000
  • 4bb663d467 Merge 04edbd243c into 5c7705fcad Mike S 2017-01-11 06:03:46 +0000
  • 21072453d6 add npm-shrinkwrap compatible with npm@4 Rebecca Turner 2017-01-10 12:16:46 -0800
  • 58dc383841 Rename shrinkwrap lifecycle for compatibility with npm@3 Rebecca Turner 2017-01-10 12:12:17 -0800
  • e09b0f0220 Merge c1ae2dae87 into 5c7705fcad Ates Goral 2017-01-10 19:47:41 +0000
  • b8bd195427 Merge fdace05b97 into 5c7705fcad Ville Lautanala 2017-01-10 19:47:41 +0000
  • a5b6541658 [ES6] output parens for yield when parented by AST_Dot or AST_Sub (#1419) kzc 2017-01-10 14:19:32 -0500
  • 30a5503654 fix(package): change name lonsenluo 2017-01-01 17:48:24 +0800
  • 2b2ac776a6 Merge e82cfbf296 into 5c7705fcad kzc 2016-12-29 15:10:30 +0000
  • ab3a12fbdd Merge 1175ed8c51 into 5c7705fcad kzc 2016-12-29 15:10:03 +0000
  • 911898b4b0 Merge 15eb9e538a into 5c7705fcad Anthony Van de Gejuchte 2016-12-29 15:10:00 +0000
  • 250ec7c52d Merge 908d9f5b04 into 5c7705fcad kzc 2016-12-29 15:10:00 +0000
  • 971035b52f Merge 6679538cc6 into 5c7705fcad kzc 2016-12-29 15:09:59 +0000
  • dde63f49db Merge 2181cf76c1 into 5c7705fcad Anthony Van de Gejuchte 2016-12-29 15:09:56 +0000
  • fca4754605 Merge 2626406077 into 5c7705fcad Timothy Gu 2016-12-29 15:09:49 +0000
  • d2a27d2bd8 Have minify() and tests use figure_out_scope() as uglifyjs CLI does kzc 2016-12-21 10:52:30 -0500
  • 629d9a283b update dependency: 'async' Janus 2016-12-22 02:03:19 +0100
  • 1acd14fe09 Add preventive test involving non-ascii function identifiers Anthony Van de Gejuchte 2016-11-30 21:54:23 +0100
  • 0a704eedce Fix regression with non-ascii function identifiers Anthony Van de Gejuchte 2016-11-30 21:50:31 +0100
  • 06d45286cd Parsing error details. MariasStory 2016-12-12 22:32:47 +0100
  • e8b1c0f964 Add note about name mangling when using --mangle-props=unquoted (#1314) Wiktor Kwapisiewicz 2016-11-30 14:54:15 +0100
  • 209d26bbae Merge 6adb029166 into 5c7705fcad kzc 2016-12-01 08:30:00 +0000
  • 962b1f3d40 Merge branch 'master' into harmony Richard van Velzen 2016-11-30 18:59:32 +0100
  • b37608764d Merge 2fa9db8b91 into 5c7705fcad kzc 2016-11-30 17:19:08 +0000
  • 5c7705fcad remove npm-shrinkwrap.json to work around npm@4.0.2 bug (#1384) kzc 2016-11-30 01:18:52 -0500
  • b8281134d8 Merge 48d2f430ff into f6372483a0 Dan 2016-11-30 11:01:01 +0000
  • e643e36e57 Merge e9cf409abb into f6372483a0 Peter Dave Hello 2016-11-30 08:50:58 +0000
  • 3d3a89e711 remove npm-shrinkwrap.json to work around npm@4.0.2 bug (#1384) kzc 2016-11-30 01:18:52 -0500
  • 3ee46e91e8 Merge branch 'master' into harmony harmony-v2.7.5 Richard van Velzen 2016-11-29 22:32:49 +0100
  • f6372483a0 v2.7.5 v2.7.5 Richard van Velzen 2016-11-29 22:29:59 +0100
  • ee26e7f11b Merge branch 'master' into harmony Richard van Velzen 2016-11-29 20:50:27 +0100