Commit Graph

  • ace8aaa0f4 Fix conditional expressions of form (x ? -1 : -1) kzc 2016-06-21 14:52:13 -04:00
  • 0c003c92a8 Don't replace undefined, NaN and Infinity within with scope kzc 2016-06-18 23:06:59 -04:00
  • 2246c79318 Merge branch 'master' into fix-harmony Anthony Van de Gejuchte 2016-06-20 19:21:25 +02:00
  • 85fbf86d7b Keep master in sync with harmony Anthony Van de Gejuchte 2016-06-20 14:18:47 +02:00
  • dda58244b6 Fixes to prevent failing tests after merging master Anthony Van de Gejuchte 2016-06-20 13:59:26 +02:00
  • aa82027a17 Don't assume DEBUG is defined when exporting --self Richard van Velzen 2016-06-20 08:39:46 +02:00
  • 55c592dd43 v2.6.3 v2.6.3 Richard van Velzen 2016-06-19 21:56:06 +02:00
  • fc1abd1c11 Document the except option to mangle Asia 2016-06-18 22:17:51 +02:00
  • e645ba84cf Respect quote style in object literals Shrey Banga 2016-05-05 13:44:59 -07:00
  • 6c99816855 Normalize error messages Anthony Van de Gejuchte 2016-06-18 17:28:22 +02:00
  • ca04508cd1 Restrict yield outside generators in strict mode Anthony Van de Gejuchte 2016-06-17 20:39:03 +02:00
  • 2149bfb707 Don't mix strings with directives in output Anthony Van de Gejuchte 2016-06-13 21:11:08 +02:00
  • 6b03b800b3 Only last parameter between parentheses can have spread Anthony Van de Gejuchte 2016-06-12 22:40:07 +02:00
  • f9cab7ad61 Allow expand in array literals Anthony Van de Gejuchte 2016-06-11 01:40:45 +02:00
  • d7971ba0e4 Fix test262 failures related to <, <=, in and instanceof Anthony Van de Gejuchte 2016-06-13 18:19:06 +02:00
  • 5c4cfaa0a7 Re-add parens after new expression in beautify mode Anthony Van de Gejuchte 2016-06-12 17:34:05 +02:00
  • bb9c9707aa Don't allow with statements in strict mode Anthony Van de Gejuchte 2016-06-12 18:58:20 +02:00
  • 0a3d780327 Merge branch 'master' into harmony Richard van Velzen 2016-06-12 17:29:42 +02:00
  • 6c8e001fee Stop dropping args in new expressions Anthony Van de Gejuchte 2016-06-10 15:42:55 +02:00
  • 9c53c7ada7 Fix octal string strict mode tests Richard van Velzen 2016-06-12 14:35:43 +02:00
  • f99b7b630d Escape null characters as \0 unless followed by 0-7. David Bau 2013-12-23 16:05:04 +00:00
  • ea31da2455 Don't drop unused if scope uses with statement Anthony Van de Gejuchte 2016-06-10 00:34:20 +02:00
  • 4d7746baf3 Throw errors in strict mode for octal strings Anthony Van de Gejuchte 2016-05-20 10:25:35 +02:00
  • b0555a123a Fix newline handling after yield Anthony Van de Gejuchte 2016-06-11 21:41:16 +02:00
  • fa29344781 Merge branch 'master' into harmony Richard van Velzen 2016-06-09 22:29:52 +02:00
  • dcfc514c38 Improve yield support and restrict usage of strict Anthony Van de Gejuchte 2016-05-26 17:00:37 +02:00
  • 31d5825a86 Catch errors when compression test fails to parse Anthony Van de Gejuchte 2016-06-08 20:11:32 +02:00
  • 8287ef6781 Fix uglify attempting to rewrite invalid new expressions Anthony Van de Gejuchte 2016-06-07 01:33:13 +02:00
  • 5cb5305cf3 Export tokenizer function ChALkeR 2016-06-07 12:25:16 +03:00
  • 00ad57e393 Do not allow newlines in regex Anthony Van de Gejuchte 2016-06-05 02:44:59 +02:00
  • 09d5707a8a collapse_vars: Do not consider RegExp literals to be constants kzc 2016-05-26 14:47:16 -04:00
  • 8ad8d7b717 Add Symbol to builtins Anthony Van de Gejuchte 2016-05-22 21:49:12 +02:00
  • 0357e5923f Merge branch 'master' into harmony Richard van Velzen 2016-05-24 17:56:20 +02:00
  • 1e390269d4 Optimize if_return for single if/return cases. kzc 2016-05-22 11:35:41 -04:00
  • bc49dfd27a Completely allow evaluating -0 Richard van Velzen 2016-05-18 18:49:55 +02:00
  • 27eedbc302 Never produce -0 when evaluating expressions (like -"") Richard van Velzen 2016-05-17 22:34:38 +02:00
  • f63803e3e3 Merge branch 'master' into harmony Richard van Velzen 2016-05-16 09:53:13 +02:00
  • 5f464b41e2 Simplify iife new fix kzc 2016-05-15 19:12:17 -04:00
  • 63be1f3a4d Only allow var definitions to be moved into the for-init clause Richard van Velzen 2016-05-15 21:00:51 +02:00
  • bcc1318d4b Do not apply negate_iife optimization to new expression kzc 2016-05-09 03:19:28 -04:00
  • e36e07fa77 Merge branch 'master' into harmony Richard van Velzen 2016-05-04 20:13:35 +02:00
  • a0e03c9df4 Retain comments before AST_Constants during mangle. kzc 2016-05-03 15:08:40 -04:00
  • 6641dcafb6 Fix regression causing tests to fail on windows Anthony Van de Gejuchte 2016-05-03 17:41:40 +02:00
  • d2945744f2 Workaround for process.exit() tty output truncation. kzc 2016-05-01 00:59:29 -04:00
  • 35bc716625 Add node 6 to travis Anthony Van de Gejuchte 2016-04-26 19:20:37 +02:00
  • f39fd3d583 Handle CR line endings in comments. kzc 2016-04-25 00:42:18 -04:00
  • 65887d9a56 Merge pull request #1053 from rvanvelzen/hoist_if_return_funs Mihai Bazon 2016-04-26 22:09:52 +03:00
  • d1b4f61f93 Merge pull request #1059 from not-an-aardvark/harmony Richard van Velzen 2016-04-26 11:51:13 +02:00
  • e9224ab444 Add test cases for slightly more esoteric cases Richard van Velzen 2016-04-26 11:49:55 +02:00
  • 4d9a085687 Add test case for hoisting a single function Richard van Velzen 2016-04-26 11:43:03 +02:00
  • 5b893c8ec3 Avoid syntax error in yield assignments (fixes #1054) not-an-aardvark 2016-04-25 19:14:44 -04:00
  • 4fe630431c Hoist functions when reversing if (x) return; ... vs. if (!x) ... Richard van Velzen 2016-04-23 23:48:33 +02:00
  • c55dd5ed74 Add passes compress option. Fix duplicate compress warnings. kzc 2016-04-12 09:19:38 -04:00
  • 8571a08a93 Do not attempt evaluating class expressions Richard van Velzen 2016-04-19 20:01:26 +02:00
  • 68cc14f846 Fixups after merge Richard van Velzen 2016-04-18 15:51:32 +02:00
  • f94497d1d6 Merge branch 'master' into harmony Richard van Velzen 2016-04-17 13:37:01 +02:00
  • e4fa4b109a Parse comments without recursion to avoid RangeError. kzc 2016-04-15 19:58:46 -04:00
  • 4b4528ee05 Prevent endless recursion when evaluating self-referencing consts Richard van Velzen 2016-04-12 20:30:44 +02:00
  • eaf3911c31 Consider yield expressions as having side-effects Richard van Velzen 2016-04-13 14:39:49 +02:00
  • 91cdb93e57 Implement harmony generators and yield Darío Javier Cravero 2016-02-04 22:19:48 +01:00
  • 187a0caf9d Add base54.reset() to compress tests Richard van Velzen 2016-04-12 20:08:09 +02:00
  • b5a7a231f7 Actually limit sequence length. Mihai Bazon 2016-04-12 14:15:14 +03:00
  • 3907a5e3b2 Fix warnings for referenced non-hoisted functions. kzc 2016-04-10 15:41:38 -04:00
  • b434b75b36 Merge pull request #1032 from kzc/member Mihai Bazon 2016-04-08 00:32:14 +03:00
  • c70d176f35 Simplify member(name, array) implementation. kzc 2016-04-07 09:57:30 -04:00
  • 9317237372 Avoid using inherited hasOwnProperty Mihai Bazon 2016-04-07 13:15:28 +03:00
  • 98434258d0 Optimize ternaries with boolean consequent or alternative. kzc 2016-04-02 00:21:13 -04:00
  • 45ddb9caeb Speedup unused compress option for already minified code kzc 2016-03-28 17:58:50 -04:00
  • 9bcf702a6e added documentation on conditional compilation using API Sebastien Daniel 2016-03-04 07:32:24 -05:00
  • 634f231b78 First class block scope Fábio Santos 2016-02-28 14:06:51 +00:00
  • 6702cae918 fix #1021 Fábio Santos 2016-03-27 12:21:39 +01:00
  • f68de86a17 Merge pull request #1011 from kzc/dont-produce-let-in-mangle Mihai Bazon 2016-03-24 18:16:26 +02:00
  • c3c7587796 Merge pull request #1019 from kzc/escape-ascii-only Mihai Bazon 2016-03-24 18:08:57 +02:00
  • 07bb7262d0 Escape all ASCII control characters within strings when using ascii_only. kzc 2016-03-24 11:51:54 -04:00
  • 21befe583f Attempt to increase timeout for mocha let test. kzc 2016-03-15 11:44:09 -04:00
  • a9d4a6291b Do not produce let as a variable name in mangle. Would previously occur in large generated functions with 21,000+ variables. Fixes #986. kzc 2016-03-15 11:20:32 -04:00
  • 6d2f77c180 fix #1003 by removing AST_ObjectSymbol and using AST_ObjectKeyVal for the same effect Fábio Santos 2016-03-12 15:53:57 +00:00
  • accca2445f fix crash: Import statements don't abort Fábio Santos 2016-02-27 13:27:18 +00:00
  • 0bc4f6edb4 Don't mangle exported symbols Fábio Santos 2016-02-27 12:40:57 +00:00
  • ce84a706a3 Implement the export statement Fábio Santos 2016-02-27 12:24:18 +00:00
  • 86b5248837 Mangling externally imported names by using aliasing Fábio Santos 2016-02-27 12:01:16 +00:00
  • 59e1601fb8 importing names in the modules, not just default imports Fábio Santos 2016-02-26 21:12:19 +00:00
  • d35a9e7839 Importing names from places Fábio Santos 2016-02-21 17:06:09 +00:00
  • 0465bd270d Starting out the import statement Fábio Santos 2016-01-29 20:47:49 +00:00
  • ee6c9fabb7 Fix: Uglified Number.prototype functions on big numbers philippsimon 2016-03-14 12:21:25 +01:00
  • 6780d0906c Fix eager parsing of arrow functions for non-punc tokens viclm 2016-03-08 15:43:01 +08:00
  • 102d1b9137 #877 Ignore mangle sort option kzc 2016-02-27 15:33:10 -05:00
  • 294861ba96 v2.6.2 v2.6.2 Mihai Bazon 2016-02-22 21:39:14 +02:00
  • 11b0efdf84 boolean_expression ? true : false --> boolean_expression kzc 2016-02-21 18:47:21 -05:00
  • 5486b68850 Take operator || precendence into account for AST_If optimization. kzc 2016-02-21 12:05:02 -05:00
  • bdd8e34f63 Allow --no-* options to disable their respective parameter Richard van Velzen 2016-02-17 20:04:45 +01:00
  • 6547437725 preserve ThisBinding for side_effects alexlamsl 2016-02-17 02:52:28 +08:00
  • 9662228f6a Don't compress (0, eval)() to eval() Richard van Velzen 2016-02-16 19:00:48 +01:00
  • 31a9b05c96 Preserve ThisBinding in conditionals & collapse_vars alexlamsl 2016-02-16 18:15:59 +08:00
  • 63b01fe8f9 Merge pull request #948 from kzc/collapse_vars_doc Richard van Velzen 2016-02-11 22:13:30 +01:00
  • 7a4ed9d200 Revert "using the original sourcemap as the base" sergeyv 2016-02-08 13:42:07 -08:00
  • 0b303379c0 fix: don't fail if definition is undefined Darío Javier Cravero 2016-02-04 21:54:21 +00:00
  • d5c651a5e5 Allow cli options to be specified in separate definitions Richard van Velzen 2016-02-08 10:36:28 +01:00
  • d7ec2ecc12 Fix #931: Create arrow functions in maybe_assign so that they can be used in assignments Fábio Santos 2016-02-09 00:02:23 +00:00
  • cdba43cfa4 Create and map bare-returns into new parse property name Martii 2016-02-06 12:46:18 -07:00