[Pkg-javascript-commits] [uglifyjs] branch upstream updated (222825b -> cc47970)
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 11:57:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a change to branch upstream
in repository uglifyjs.
from 222825b Imported Upstream version 1.3.5
adds 88fee34 Imported Upstream version 2.2.2
adds e753d07 Strip .gitignore file.
adds a489ddb Imported Upstream version 2.2.5
adds 562b12f init repo
adds 46e7507 Fixes some gotchas.
adds 22bb5e8 added small node test script
adds 861e26a WIP
adds c0ba9e2 WIP
adds 7f273c3 codegen and dropped the useless walker
adds c7c163b lots'o'fixes in the output routines; still a looong way to go.
adds 13f7b11 code generator finally seems to work properly
adds 4fb6021 fix one more glitch
adds 07cbc8d added some comments about the rules governing parens
adds 901f770 don't output both space and semicolon when beautify=false
adds ef87c9f big speed improvement (observable when beautify = false)
adds cd8ae5f minor whitespace issues
adds 4488758 some fixes (need testing) in AST_If codegen
adds 6c35135 simple visitor API and code to figure out scope and references
adds 1fe0ff9 doc (WIP)
adds 458e251 added mangler and other stuff
adds 99456c6 more fixes:
adds 159333f warn about unreferenced symbols
adds 92bd53b handle labels properly
adds 7ae1c60 some reorganization
adds ffe58a9 cleaned up some mess and started the actual compressor
adds 1b839eb hint that brackets may be required in AST_BlockStatement
adds fb8c9e3 declare some properties in the node constructor so that they're copied in clone
adds f53e139 fix output for certain edge cases
adds 159a6f0 wrote more of the compressor and added some tests
adds 95b18e5 added license
adds 8d233c3 fix current_col and force a newline every 32K (support options.max_line_len)
adds a8e49f1 added print_to_string helper method
adds 4437e7a fix compressing `a,b; return c;` into `return a,b,c;`
adds 8dfa9fe minor
adds 58a3b5e update (c) years
adds bf70205 minor
adds ce8e8d5 added README
adds 7fcb6bc fix code generator for this case:
adds 1b6bcca fix output for arrays containing undefined values
adds 86cff20 docstring for AST_StatementWithBody
adds 6569e66 update with link to discussion about Esprima vs. UglifyJS speed
adds 48440dc don't mangle names of setters/getters
adds 52bcca2 started support for generating source maps (WIP)
adds 24bfd55 minor perf. improvements
adds f2f370c add source mappings for more node types; started CLI utility
adds 596af60 add -b
adds 1bf5928 Reverting "minor perf. improvements" Revert "minor perf. improvements"
adds 66c869c switch branches must be declared `required` so that the compressor doesn't replace nodes with a single statement.
adds d6efa8b declare boolean options
adds d7c1dc6 a LabeledStatement should be in fact a StatementWithBody
adds 6d0db4c an AST_If is too a StatementWithBody
adds f702264 jumps, try and definitions are statements too
adds f03138d resolve constant expressions
adds 37eecc1 more optimizations for ifs/conditionals
adds e5f1cec minor
adds 86cfb5b boolean and if/exit optimizations
adds 3459c40 if present, the `else` in an `if` should always be forced statement
adds 376667a more fiddling with boolean expressions, etc.
adds 1b5183d checkpoint
adds 8633b00 cleaned up usage of AST_BlockStatement
adds 0503513 support for hoisting declarations
adds c7b484b fix for variable names like `toString`
adds 0afafe6 declared `--stats` as boolean
adds 9bb1a84 don't duplicate argument names
adds b77574e fixed tests (need to drop the toplevel block in "expected" if it's a single statement)
adds 919b273 always keep declarations found in unreachable code
adds 048d690 fix bug (forgot arg name)
adds 43c75c9 checkpoint
adds 5a8e6ce fix output for division followed by regexp
adds 1c8ba35 minor
adds 16b12c6 fix "file" in the source map
adds a41e6cf more progress on the compressor (WIP)
adds 6b9aeb5 adaptive base54 digits depending on char frequency (WIP)
adds 1579c0f hoist_vars is pretty bad, it seems. cancelled it for now.
adds da407d4 checkpoint
adds 8e82d8d fixed some mess with symbols/scope
adds 9a629ab minor
adds 2b4093b fixed run-tests and an issue about reversing the condition in AST_If
adds 2b1e462 side effect fixes and small optimization for gzip
adds a132841 more AST_If optimizations
adds f5027ec minor
adds d72c1d1 few more optimizations:
adds 93b973c added -m and -c options
adds 924aa58 more optimizations that v1 does and some cleanups
adds 5e83e7e adding an imaginary "return undefined" can sometimes help
adds 50d1670 minor
adds 43fd451 compress typeof x == "undefined" to x === undefined, which further gets shortened to x === void 0 (or x === [][0] in unsafe mode)
adds 86c14d0 join_vars:
adds 4e0262b figure out label targets
adds 397bf56 other small optimization:
adds 7b6a402 rewrite handle_if_return
adds 21c34a1 drop unused function
adds 0f418d6 more sequencesizing (WIP)
adds 5d781ec some cleanup
adds 5e60a60 try negating AST_Binary
adds 07f1d56 more smallish optimizations
adds 14481de empty block to empty statement: {} ==> ;
adds 92e22c4 possible optimization for AST_Undefined
adds 45a3970 one more test for sequences
adds 6ad414e minor
adds e370e3b fix .undeclared (it's now a function)
adds ee669ba moved `typeof foo == "undefined"` ==> `foo === undefined` under `--unsafe`
adds d91613b only do the typeof x == "undefined" optimization if x is a symbol reference and it's declared in scope, or x is not a symbol reference.
adds 2196828 added AST_NaN (output as 0/0)
adds 3da0ac4 support for directives
adds 669874d minor
adds a4d2340 fixed label scope/mangling
adds d53e1a9 support -c with no arguments to disable compression entirely
adds e8da72d drop unused variables
adds c4f8c21 more on detecting side effects
adds 5491e1d better support for multiple input files:
adds ec7f895 log filename in parse errors / compressor warnings
adds 76d88b5 tree transformer api (WIP)
adds a83b285 properly drop mutually-referring declarations that are not otherwise referenced and have no side effects
adds 4f97da9 minor tests fix
adds 42038fd Support input source map
adds 368ac8f some boolean cleanup
adds ea6d1ea it's not safe to assume that property access is side-effect-free
adds e836e2a minor
adds 4201577 started some refactoring (WIP) -- moving squeezer to TreeTransformer
adds 10c7f52 discard all \uFEFF characters (https://github.com/mishoo/UglifyJS/issues/462)
adds 9321d41 moving code around (refactoring, WIP)
adds 242dd10 more cleanups
adds e979d01 minor
adds a24e7ee checkpoint (refactoring, WIP)
adds 78be8f5 compressor successfully moved to TreeTransformer
adds 15d58f5 some speedup and more savings from unused vars that have side effects in initialization
adds 13278c6 removed the "squeeze" method (it's now effectively "transform")
adds 05e15b1 fix mangling
adds 8964444 minor
adds 9e5dd81 a shy attempt to obey `width` in the beautifier; added `bracketize` option to always print brackets around if/do/while/for statements; export more options via the CLI
adds ff696cd drop more unused names
adds 347160c add AST_SymbolConst for names defined with `const`
adds 2117927 more constant folding (for names defined with `const`)
adds e1098b0 "use strict";
adds dde5b22 support defines
adds 36be211 option to exclude certain names from mangling
adds 2a54562 added option to keep some comments in the output
adds 075f93e line numbers start at 1
adds cb2e811 discard annoying nodejs warning
adds 815abcf support for `--comments` option to keep comments containing @license or @preserve
adds 5c151f9 fixed usage string
adds 378ed17 disable `hoist_vars` by default and change `comparations` to `comparisons`
adds 0678ae2 fix for `a = !b && !c && !d && !e → a=!(b||c||d||e)`
adds 7e8880b document the CLI tool
adds bd94eeb drop tmp. files
adds e0f5075 fix endless loop in tests
adds c11de17 added option for side-effect-free statements, fix test
adds 9221ad6 added package.json
adds 3412498 AST cleanup (dropped AST_StatementBase)
adds 11863d6 more cleanup (dropped AST_SwitchBlock)
adds 42ce7ed ignore tmp/
adds 2bd8a11 define AST_Node.from_mozilla_ast(ast)
adds f20c251 moving code around
adds 682a58a removed some unused variables
adds 708ec04 minor
adds a9b6f99 use the appropriate constructor for symbols
adds ecd9f21 fixed import of locations from SpiderMonkey AST
adds e88dcc3 added --acorn and --spidermonkey options
adds 42c25d9 add note about installation
adds 7ae0912 prevent mangling only when eval is *called*, not when it's just referenced
adds a1e0885 replace `(function(){ ...no side effects ... })()` with `undefined`.
adds 4a2b912 minor
adds 455ac54 remove unused code
adds fe1411b fix typo
adds 80a18fe for certain nodes that we invent we might not have a original source file to map from, so just use "?". and in any case, don't fail hard when addMapping throws.
adds 093a903 eliminate redundant directives in the same scope
adds dd8286b added --self to easily get a browser-runnable version of UglifyJS
adds d4970b3 should not expose base54.sort() in the API docs, I think
adds 42ea3c9 added some basic API doc
adds dfc04e6 add simple API wrapper: UglifyJS.minify
adds c967f0b fix `inSourceMap` in `minify` (should read the file)
adds 203ecaf Fix nodejs minify without inSourceMap exception
adds 9dfcd47 Merge pull request #8 from SevInf/master
adds 2c025f2 fix detecting symbols in use
adds e1862cd add `--ast-help`
adds 9ead496 minor AST cleanup (AST_BlockStatement may inherit from AST_Block)
adds 1b0aab2 added $propdoc to AST nodes and some cleanups
adds 88beddf make `--comments` keep @cc_on too
adds a84d07e add AST_Infinity node
adds 4807c6e update on @cc_on
adds 86182af minor
adds 3799ac8 add `--lint` and display {file} in scope_warnings
adds c5ecbfc drop unused variable
adds f26f3b4 small improvements in wrap_commonjs:
adds dacce1b seems cleaner if AST_Label doesn't inherit from AST_SymbolDeclaration
adds 9cdaed9 fix node name
adds f322b32 disable warnings by default in `minify` (pass warnings: true to enable)
adds 5053a29 fix propagation of symbol references
adds 172aa7a cleanup
adds f4584af using makeComparator from acorn to generate functions that tests whether a string is keyword, reserved etc.
adds fb5c01c stealing more hacks from acorn in the name of speed
adds d9d6731 fix pos in syntax error exception
adds fc39553 use AST_Lambda for object setters/getters
adds 72cb532 fix in_boolean_context() (two tests were broken)
adds 731fa9c add test for issue #12
adds 1b6f8d4 remove the $self hack
adds ba3df64 actually enable the option that drops unused names in the test of issue #12
adds 8149be5 minor
adds 70d205c update for acorn
adds b51fe0d fix end tokens in spidermonkey ast import
adds 370d3e0 fix regression from fb5c01c073d06034815d5f3b782fd11cbdf6d6f5
adds 708abb1 minor
adds 851b48e fix compressing benchmark.js (it tried to evaluate a statement)
adds b071c9d add parens to AST_Seq whose parent is AST_Unary
adds fcc0229 drop unused function arguments
adds 1ffd526 disable warnings in the test suite
adds 8957b3a fix small glitches in source map generation
adds 6472f94 add `semicolons` option in the code generator (default: `true`)
adds 8f66458 the `sort` option is broken anyway, removed it
adds a21f3c6 employ a better parser for command-line arguments
adds 6a099fb define aborts on AST_If: true if both branches abort
adds 253bd85 more small optimizations
adds 4482fdd added note about API docs and online demo
adds a5e75c5 v2.1.0
adds 4fe4257 fix `--comments` (close #16)
adds 6aa56f9 v2.1.1
adds afb7faa more optimizations for some break/continue cases
adds 6f45928 add fromString argument to `UglifyJS.minify` (allows to pass the source code, instead of file names, as first argument).
adds fc8314e minor fix for dropping unused definitions.
adds 12f71e0 alternate hack to disable deprecation warning
adds 11dffe9 Add sourceRoot option to minify
adds 3a72dea Merge pull request #19 from SevInf/master
adds bee01dc Merge branch 'master' of github.com:mishoo/UglifyJS2
adds 41be863 v2.1.2
adds 30faaf1 more sequence optimizations (lift some sequences above binary/unary expressions so that we can avoid parens)
adds 70fd2b1 fix for `if (...) return; else return ...;`
adds 7b87d2e v2.1.3
adds 202fb93 test for fs.existsSync
adds cb3cafa cripple scope to make IE happy :-(
adds 0852f55 v2.1.4
adds abe0ebb don't move expressions containing the binary `in` operator into the `for` initializer
adds 5248b79 v2.1.5
adds d4c25c5 fix compressing UnaryPrefix
adds 18270dd added unsafe_comps for negating `<=` with `>`
adds cf40980 it's safe to negate expression in !EXP only in boolean context
adds dde5745 v2.1.6
adds 8413787 use a Dictionary object instead of plain object for hashes
adds 85af942 print final semicolon
adds 774f2de minor optimization
adds fba0c1a minor
adds ffccb23 convert `while` into `for`
adds 7f5f4d6 discard the hack that worked around the deprecation warning
adds a4f6d46 add option to mangle names even if eval/with is in use
adds 5346fb9 add proper parens around unary expressions
adds ff388a8 parenthesize a Call expression when its parent is New
adds a90c1ae further fix for parens around New (refs #35)
adds a1ae0c8 parenthesize property access when it's the expression in New
adds 5276a4a add AST_Accessor and AST_SymbolAccessor node types
adds bb0e4d7 v2.1.7
adds 80da21d fix regression from 5346fb94 (shouldn't parenthesize i++ in x[i++])
adds 258b46f v2.1.8
adds 46be3f2 fix another small regression
adds 39f8a62 v2.1.9
adds 5a7e54c ignore node_modules/
adds 1a5fd3e optimization for if/break as first statement in a loop body
adds e312c5c fix API breakage
adds 64270b9 v2.1.10
adds 1e5e13e AST_LabelRef no longer inherits from AST_SymbolRef
adds 78856a3 declare dependency versions
adds b49230a convert x.toString() to ""+x instead of x+""
adds f05c99d Merge pull request #41 from Skalman/toString-patch
adds 53355bd fix invalid AST produced by dropping unused variable
adds a9fa178 v2.1.11
adds e02771a don't change order in binary expressions if both operands have side effects
adds f96f796 Add simple optimization for empty-string concats.
adds 60c0f40 Merge branch 'optimize_concat' of https://github.com/rvanvelzen/UglifyJS2 into rvanvelzen-optimize_concat
adds dba8da4 optimize constant switch blocks
adds bdfcbf4 better solution for the last test in constant switch folding
adds e981194 Add support for somewhat preserving line numbers.
adds 0d3fd2e retain (1,eval) as is when it's the expression of an AST_Call
adds 089ac90 fix #51
adds 642ba2e rename the npm package to "uglify-js" and cli tool to "uglifyjs"
adds 4f555e2 fix for https://github.com/mishoo/UglifyJS/issues/474
adds 1abde9c v2.2.1
adds 13c4dfc fix #55
adds e48802a Fixed reading from STDIN.
adds f427e5e Merge pull request #58 from roxeteer/master
adds 5cc90db Don't messup compressor stack while optimizing Switch
adds b5c3253 Add test for issue #59
adds dbe33bb Revert "Fixed reading from STDIN."
adds 320c110 When hoisting variables, try to merge in assignments that follow.
adds 16430ac small improvement on merging assignments into hoisted vars
adds 98978fc Add proper parens in "NoIn" expressions.
adds 6064bea v2.2.2
adds c4993e1 Small cleanup
adds 08219f0 Fix output when semicolons is off.
adds 31c4a37 Optimize new Array(1, 2, 3) → [1, 2, 3]
adds 9916d0e Accept string or number as name of an accessor.
adds 83a4ebf Implement `-m sort=true`
adds e82e89d --version option
adds ba40333 Set --version as a boolean #87
adds 47c9895 Merge pull request #87 from BenoitZugmeyer/master
adds 130c623 Support `output`, `mangle` and `compress` options to `UglifyJS.minify`.
adds 6b14f7c Fix handling of labels in nested scopes
adds 16953c2 v2.2.3
adds 1d8871a Compressor options use underscores rather than hyphens
adds c058d8b Merge pull request #90 from jakearchibald/patch-1
adds f0909bd Handle String() with no arguments.
adds c13e7e6 Update installation instructions re #4
adds 605f330 Merge pull request #98 from ForbesLindesay/patch-1
adds 1529ab9 Fix output for arrays containing undefined values.
adds faa354f [AST_Hole] the print function can be a no-op.
adds 297af47 Add --source-map-url option
adds 522566e Fix #105: property comparison to undefined is not always safe
adds 8bf83f4 Merge pull request #106 from gibson042/105
adds ad071f8 Add better fromstring docs.
adds e9a571b Merge pull request #94 from paulmillr/patch-1
adds a5b2094 Fix end token for Assign nodes
adds 31e99ce v2.2.4
adds a9af2c9 Wraps sourceMappingURL in a multiline comment. Fixes #108
adds 3a22e91 Merge pull request #111 from mattrobenolt/safer-sourcemap
adds 719a8fd Ugly hack to print comments before return/throw statements
adds 9e8ba27 Fix handling of constants
adds 3c8a0bd Fix parens for AST_New
adds de7ec7f Fix parens for negative numbers
adds fdf8b5e Fix parens for NaN
adds f36e4e9 Give up evaluating (unary-prefix '-' 0)
adds 916faf0 Force space after literal regexp when used in "instanceof" or "in"
adds db66eca v2.2.5
adds 3a591c4 Fix compressing `do {...} while (false)`
adds cb0c576 Add license
adds 8880f48 Compress boolean constants after evaluation
adds dac6efb Drop last `default:` if it's the last branch and empty
adds 26746ce Add `--screw-ie` option
adds aebafad Fix reordering comparisons
adds f83aca6 Read the entire STDIN.
adds 3bd7ca9 Merge pull request #146 from mbostock/read-all-stdin
adds e4b078c Disable `unsafe` by default
adds 9b1a40d Support mangling toplevel names
adds f276745 Allow inSourceMap to be a generated JSON source map instead of just a file name
adds 24e58ee Merge pull request #125 from devongovett/master
adds b14d3df Keep legit code working even when --screw-ie is not passed.
adds e0f67ba Don't print the warning on parse error, just throw a JS_Parse_Error.
adds 478bf4d Add support for enclose option. Closes #139.
adds 75f0bbe renamed --screw-ie to --screw-ie8, documented it in README.md, indicated it doesn't break IE9+
adds 7628bca Merge pull request #163 from mzgol/screw-oldie
adds 69dde04 uglifyjs binary: Make read_whole_file async and don't attempt to read STDIN synchronously.
adds 81f5efe Output, to_ascii: Escape non-ascii chars with \xnn instead of \unnnn whenever possible.
adds a869b85 Don't use \xYY for identifiers
adds 2b8e206 fix package.json
adds 37d7cb8 Quote objects with numeric keys
adds b956e5f Add tests for typeof evaluation
adds 4b81805 Fix typeof evaluation for regex and function
adds 483e0ca unbalanced parentheses in readme
adds a9c1b9f Merge pull request #190 from michaelficarra/patch-1
adds 5af1445 fixes #189: use dotted member access when --screw-ie8 option given
adds 753b4b6 Merge pull request #191 from michaelficarra/use-es5-member-access-with-screw-ie
adds 68394ee Make compress/mangle disabled by default, as before 5af144522a6fea302abdd0b63d48864de0664207
adds 9794ebf Workaround for missing `prefix` in UnaryExpression generated by Esprima
adds 5c22a1b v2.3
adds 8e62661 Take two. v2.3.0
adds a54b670 Add README syntax highlighting
adds d6e6458 Merge pull request #194 from ulikoehler/master
adds 8227e87 Added scenario in test case where properties shouldn't be accessed with dotted syntax even with screw_ie8 option. Signed-off-by: Justin Lau <justin at tclau.com>
adds 1e3bc0c Fixed dot property issue with invlid identifier names. Signed-off-by: Justin Lau <justin at tclau.com>
adds fcd544c Added test scenario with unicode in properties name. Signed-off-by: Justin Lau <justin at tclau.com>
adds 9af2bbf Fixed dot properties not optimizing unicode identifiers. Signed-off-by: Justin Lau <justin at tclau.com>
adds 790b3bc Fix typo in bin and readme
adds 645d5bd Merge pull request #195 from kjbekkelund/typo
adds 6726996 Added test cases for #104. Signed-off-by: Justin Lau <justin at tclau.com>
adds a1958aa Fixed typeof undefined optimization and updated related test case to accomodates the sort behaviour changes made in commit mishoo/UglifyJS2 at aebafad41eab48f43ed649ce8c77e8f1528b50da. Signed-off-by: Justin Lau <justin at tclau.com>
adds a6ed2c8 Better fix for equality of typeof ... against "undefined"
adds 0f509f8 v2.3.1
adds 11e24d5 Fix property names
adds 1e9f98a add a test for zero-length string in is_identifier_string, which is used in property compression. Also added a test exercising the change.
adds 064e7aa Fix is_assignable
adds a9511df Use the negation hack rather than parens for a toplevel function expression call
adds 7f77eda v2.3.2
adds 4a19802 Add CI build for supported Node versions
adds 46814f8 Add Travis build badge to README
adds 3edfe7d Merge pull request #202 from nschonni/add-travis-ci
adds d56ebd7 Fix a["1_1"]
adds f64539f Compress code passed to `new Function` if it's a constant.
adds d13aa39 v2.3.3
adds caa8896 Only compress code in `new Function` if all arguments are strings.
adds ca3388c Add `--expr`, an option to parse a single expression (suitable for JSON)
adds 2b40a5a v2.3.4
adds ad1fc3b Fix package.json (use `repository` instead of `repositories`)
adds f652372 v2.3.5
adds 22a038e Fix output of statement: `new function(){...};`
adds 9fc8a52 Set "global" on undeclared SymbolDef-s
adds 9fc6796 Add `negate_iife` option to the code generator.
adds 1dbffd4 SourceMapping pragma has changed to //#
adds 3a21861 The extra /* */ isn't needed now
adds 2df4892 Merge pull request #213 from mattrobenolt/patch-1
adds 188e28e v2.3.6
adds f29f07a Escape null characters as \x00
adds a4889a0 Merge pull request #220 from lautis/escape-null
adds 02a8438 Don't swap binary ops when "use asm" is in effect.
adds d0689c8 Reset the base54 counters every time minify is called.
adds fc9ba32 Fix typo.
adds 9243b0c Apply transformer to AST_VarDef's name
adds 4a0bab0 Add "position" option to parser, to specify initial pos/line/col
adds 193049a Revert previous patch, it was no good.
adds b1febde Fix output for arrays whose last element is a hole: [1,,]
adds e54df22 added option for dropping unused params
adds 41c6273 Reverting "added option for dropping unused params" Revert "added option for dropping unused params"
adds 3435af4 Don't require arguments to --enclose
adds b7adbca Fix #251
adds 964d5b9 Don't pretend to evaluate lambdas
adds 2604aad Add support for browserify
adds 4aa4b3e Support `-p relative`. Fix #256
adds 4c4dc21 Don't drop unused setter argument.
adds 6ea3f7f fix usage
adds d9ad3c7 fixes #259: don't unnecessarily quote object properties when --screw-ie8
adds 4f09df2 Merge pull request #270 from michaelficarra/GH-259
adds ed80b4a Move support for `negate_iife` in the compressor, rather than code generator
adds 1a95007 Remove --ie-proof from the readme.
adds c28e1a0 v2.4.0
adds a89d233 Better reporting of parse errors
adds 78a217b Fix parsing regexp after unary-prefix operator
adds b0ca896 Fix parsing `a.case /= 1`
adds 1c6efda Better fix for #286
adds 85b527b Disallow `continue` referring to a non-IterationStatement. Fix #287
adds 5d8da86 Fix names.
adds cb9d16f minor
adds 7c10b25 Support HTML5 comment syntax (enabled by default!)
adds 83ba338 Avoid printing <!-- in the output (HTML5 comment)
adds 8d14efe Concatenate strings also on the right-hand side of an expression that cannot be evaluated. Fix #126
adds 78e98d2 When `unsafe` is set, evaluate [...].join() if possible
adds e815827 Evaluate [...].join() if possible: minor bugfix
adds 583fac0 More dirty handling of [ ... ].join() in unsafe mode
adds 037199b Actually let's move away those monsters from the evaluate function
adds afdaeba More attempts to determine when addition is associative
adds 95b4507 Fix error in the output minifying `Function("return this")()`
adds 88fb83a minor optimization
adds 8cc86fe add `clean_getters` compressor option (default `false`)
adds bb0a762 Only allow identifier start characters at the beginning of identifiers.
adds 253c7c2 Merge pull request #308 from meteor/fix-unicode-keys
adds f2348dd Rename clean_getters to pure_getters; add pure_funcs.
adds 3a81f60 Don't drop_unused before compression.
adds 3fa9265 wrap up
adds d09f0ad `arguments` outside of a function is an ordinary variable.
adds 8c9cc92 v2.4.1
adds 63d04ff Revert #3a81f60 for now
adds 118105d Add an exit code to the test suite
adds aafe2e1 Merge pull request #322 from rvanvelzen/test-exit-code-1
adds 7055af8 Fix #280
adds 63e1a8e Merge pull request #323 from rvanvelzen/undefined-drop-vars-fix
adds 1a5a4bd Fix #269
adds cfd5c61 Merge pull request #325 from rvanvelzen/fix-269
adds 582cc55 Display number of failed tests and corresponding files
adds e2daee9 Fix RHS concat (raised in #330)
adds 0d6e08c Merge pull request #331 from rvanvelzen/rhs-strings-fix
adds 9cd118c Add a unit test for issue-126
adds 8979579 Merge pull request #330 from markjaquith/master
adds b47f7b7 Merge branch 'master' of github.com:mishoo/UglifyJS2
adds 0358e37 Fix codegen for when comments_before is undefined.
adds f1b7094 Add "preamble" output option
adds a14c6b6 Avoid shadowing name of function expression with function argument
adds 7cf79c3 Fix reading arguments
adds b214d37 Fix typo
adds 785c606 Disallow reversal where lhs has higher or equal precedence
adds bea3d90 minor
adds e4c5302 Fix output for `x = 2 * (a % b / b * c)`
adds 9dd9760 indentation
adds b70670b Fix regression after e4c530240650535d1cb46569dfb013193471af05
adds c5ed229 Fix parsing setters/getters (allow keywords for name).
adds 63287c0 Workaround for Safari bug
adds 263577d [README] Fix #278
adds bb700da v2.4.2
adds f4919e3 Do not lift sequence from right-hand side of binary operation. Fix #343
adds 19e2fb1 v2.4.3
adds eab99a1 Better fix for #343
adds 7d11b96 Only descend twice after drop_unused if it's the same node type.
adds 50b8d72 Fix faulty compression
adds 73d082d v2.4.4
adds c16d538 Add --noerr to turn off argument name checking
adds 547561a v2.4.5
adds ea10642 v2.4.6, because npm is foobar
adds d2190c2 Properly scope `catch` identifier when --screw-ie8
adds 8f35a36 AST_Catch shouldn't really inherit from AST_Scope. Fix #363
adds a790c09 v2.4.7
adds df8c562 minor
adds dc5f70e Add `drop_console` option to the compressor
adds dfa395f Make `DefaultsError` a real `Error` object
adds 248f304 Merge pull request #245 from ForbesLindesay/patch-1
adds bd0886a semicolons
adds fa3300f bugfix #242
adds b634018 Merge pull request #371 from colorhook/master
adds f65e55d minor
adds 428e19f Add option to adjust the src/target line in the source map
adds 15a148f v2.4.8
adds be55a09 Take out all comments from an AST_Exit's value
adds 7a30d82 Better fix for comments in AST_Exit
adds 5a083a9 Optimize seq,void 0. Close #377.
adds aa9de76 Mark `yield` as reserved word. Close #375.
adds b521b4b Conditional/call optimization
adds 5e4c7f4 Fix parens for property access -- (foo, bar)["baz"]
adds 27142df minor: exp["10"] => exp[10]
adds a67e3bf Fix #392
adds 2c88eb6 doh.
adds b9fac68 Support SpiderMonkey AST in UglifyJS.minify. Fix #393.
adds 72e6f64 Disable node 0.6 since the build fails consistently and it's not our fault.
adds 2c305af Support @ngInject with `angular` compressor option. Close #395.
adds c3087dd Better process_for_angular before other statement reductions. #395
adds cad1f9c Unescape Unicode sequences in regexps when ascii_only is false. #54
adds 90a330d simplify
adds eda540f v2.4.9
adds 1ab2fda Fix example
adds 4339bd5 Don't unescape \x2f (slash) in regexps. #54
adds 75cdbf1 v2.4.10
adds 1e31011 Don't unescape byte order marks in regexps
adds 2d8fc61 Merge pull request #402 from lautis/bom-regexps
adds 1d0127d Fix end token for conditionals. Close #404
adds 931862e More chars that cannot be unescaped in regexps.
adds 6f9d051 v2.4.11
adds ceb200f Move unescaping regexps under a codegen option (`unescape_regexps`)
adds f5f8239 Don't unescape \x00 in regexes (it breaks IE8)
adds 2eeb640 Merge pull request #408 from danielstutzman/escape-null-in-regex
adds e29048b Merge branch 'master' of github.com:mishoo/UglifyJS2
adds bf7b122 v2.4.12
adds 03cf94e Added support for sourcesContent property of source map
adds f6203bd added hasOwnProperty check to avoid warnings
adds 1dd05f4 Merge branch 'sourcesContent' of https://github.com/arty-name/UglifyJS2 into arty-name-sourcesContent
adds 0007a53 Update source-map
adds 5344b7d Fix if_return dropping the alternative. Close #413
adds 9b404f9 fix readme typo (when -> with)
adds 2494daa Merge pull request #422 from mourner/patch-1
adds ac0086a Simplify nested conditionals if possible
adds 1a44400 Merge pull request #424 from mattbasta/simplify_conditionals
adds ef2ef07 Add option `keep_fargs`.
adds bf30dc3 Mangle name of exception when --screw-ie8. Fix #430.
adds 014f655 Handle the case when SourceMapConsumer.originalPositionFor returns null source.
adds f5c09d0 Merge pull request #439 from Arnavion/null-source-in-sourcemap
adds 448a8d3 v2.4.13
adds b1ae8cc Imported Upstream version 2.4.13
new d488b45 Merge branch 'upstream' into upstream-experimental
new e2e09d5 Allow colons in the pairs passed to AST_Toplevel.wrap_enclose
new 14f290f Merge pull request #454 from Arnavion/allow-colons-in-wrap_enclose
new 6fcabbd Fix sourceMapIncludeSources exception in Node API
new ef772b0 add sourceMappingUrl to output in node module
new 1a34a13 Merge pull request #470 from ebednarz/master
new 8fbe200 Always quote property names that contain non-ASCII characters.
new 37693d2 Update tests.
new 514936b Handle TryStatements trees from acorn >=0.2.0
new 7165269 Merge pull request #445 from ConradIrwin/try-statement
new 8669ca2 Merge branch 'master' of github.com:mishoo/UglifyJS2
new 8258edd Fix parens in +(+x). Close #475
new 025f3e9 Better fix for #475
new 7bf59b5 Actually, even better. #475
new e3342a3 v2.4.14
new 8463b48 Do not run a test for Node v0.4
new 91bc3f1 Merge pull request #499 from shinnn/master
new 8511e80 Evaluate "foo".length ==> 3
new ac2caf1 Check for the case an AST_For's init is an EmptyStatement
new 9798d96 Lock source-map to 0.1.34
new 83e0939 v2.4.15
new cc47970 Imported Upstream version 2.4.15
The 22 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.
Summary of changes:
.travis.yml | 5 +
LICENSE | 29 +
README.html | 1016 ----------
README.md | 640 +++++++
README.org | 596 ------
bin/uglifyjs | 728 +++++---
docstyle.css | 75 -
lib/ast.js | 984 ++++++++++
lib/compress.js | 2386 ++++++++++++++++++++++++
lib/consolidator.js | 1220 ------------
lib/mozilla-ast.js | 267 +++
lib/output.js | 1304 +++++++++++++
lib/parse-js.js | 1369 --------------
lib/parse.js | 1450 ++++++++++++++
lib/process.js | 2120 ---------------------
lib/scope.js | 567 ++++++
lib/sourcemap.js | 87 +
lib/squeeze-more.js | 78 -
lib/transform.js | 218 +++
lib/utils.js | 302 +++
package.json | 58 +-
test/beautify.js | 28 -
test/compress/arrays.js | 74 +
test/compress/blocks.js | 49 +
test/compress/concat-strings.js | 22 +
test/compress/conditionals.js | 234 +++
test/compress/dead-code.js | 89 +
test/compress/debugger.js | 24 +
test/compress/drop-unused.js | 165 ++
test/compress/issue-105.js | 25 +
test/compress/issue-12.js | 11 +
test/compress/issue-126.js | 24 +
test/compress/issue-143.js | 48 +
test/compress/issue-22.js | 17 +
test/compress/issue-267.js | 11 +
test/compress/issue-269.js | 66 +
test/compress/issue-44.js | 31 +
test/compress/issue-59.js | 30 +
test/compress/labels.js | 163 ++
test/compress/loops.js | 123 ++
test/compress/negate-iife.js | 76 +
test/compress/properties.js | 74 +
test/compress/sequences.js | 163 ++
test/compress/switch.js | 260 +++
test/compress/typeof.js | 25 +
test/run-tests.js | 179 ++
test/testconsolidator.js | 1391 --------------
test/testparser.js | 409 ----
test/unit/compress/expected/1e21.js | 1 -
test/unit/compress/expected/array1.js | 1 -
test/unit/compress/expected/array2.js | 1 -
test/unit/compress/expected/array3.js | 1 -
test/unit/compress/expected/array4.js | 1 -
test/unit/compress/expected/assignment.js | 1 -
test/unit/compress/expected/concatstring.js | 1 -
test/unit/compress/expected/const.js | 1 -
test/unit/compress/expected/div-with-regexp.js | 1 -
test/unit/compress/expected/empty-blocks.js | 1 -
test/unit/compress/expected/forstatement.js | 1 -
test/unit/compress/expected/if-not.js | 1 -
test/unit/compress/expected/if.js | 1 -
test/unit/compress/expected/ifreturn.js | 1 -
test/unit/compress/expected/ifreturn2.js | 1 -
test/unit/compress/expected/infinite.js | 1 -
test/unit/compress/expected/issue10.js | 1 -
test/unit/compress/expected/issue11.js | 1 -
test/unit/compress/expected/issue13.js | 1 -
test/unit/compress/expected/issue14.js | 1 -
test/unit/compress/expected/issue16.js | 1 -
test/unit/compress/expected/issue17.js | 1 -
test/unit/compress/expected/issue20.js | 1 -
test/unit/compress/expected/issue21.js | 1 -
test/unit/compress/expected/issue25.js | 1 -
test/unit/compress/expected/issue27.js | 1 -
test/unit/compress/expected/issue278.js | 1 -
test/unit/compress/expected/issue28.js | 1 -
test/unit/compress/expected/issue29.js | 1 -
test/unit/compress/expected/issue30.js | 1 -
test/unit/compress/expected/issue34.js | 1 -
test/unit/compress/expected/issue349.js | 1 -
test/unit/compress/expected/issue353.js | 1 -
test/unit/compress/expected/issue372.js | 1 -
test/unit/compress/expected/issue4.js | 1 -
test/unit/compress/expected/issue471.js | 1 -
test/unit/compress/expected/issue48.js | 1 -
test/unit/compress/expected/issue50.js | 1 -
test/unit/compress/expected/issue53.js | 1 -
test/unit/compress/expected/issue54.1.js | 1 -
test/unit/compress/expected/issue68.js | 1 -
test/unit/compress/expected/issue69.js | 1 -
test/unit/compress/expected/issue9.js | 1 -
test/unit/compress/expected/issues222_324.js | 1 -
test/unit/compress/expected/mangle.js | 1 -
test/unit/compress/expected/null_string.js | 1 -
test/unit/compress/expected/strict-equals.js | 1 -
test/unit/compress/expected/var.js | 1 -
test/unit/compress/expected/whitespace.js | 1 -
test/unit/compress/expected/with.js | 1 -
test/unit/compress/test/1e21.js | 1 -
test/unit/compress/test/array1.js | 3 -
test/unit/compress/test/array2.js | 4 -
test/unit/compress/test/array3.js | 4 -
test/unit/compress/test/array4.js | 6 -
test/unit/compress/test/assignment.js | 20 -
test/unit/compress/test/concatstring.js | 3 -
test/unit/compress/test/const.js | 5 -
test/unit/compress/test/div-with-regexp.js | 1 -
test/unit/compress/test/empty-blocks.js | 4 -
test/unit/compress/test/forstatement.js | 10 -
test/unit/compress/test/if-not.js | 1 -
test/unit/compress/test/if.js | 6 -
test/unit/compress/test/ifreturn.js | 9 -
test/unit/compress/test/ifreturn2.js | 16 -
test/unit/compress/test/infinite.js | 1 -
test/unit/compress/test/issue10.js | 1 -
test/unit/compress/test/issue11.js | 3 -
test/unit/compress/test/issue13.js | 1 -
test/unit/compress/test/issue14.js | 1 -
test/unit/compress/test/issue16.js | 1 -
test/unit/compress/test/issue17.js | 4 -
test/unit/compress/test/issue20.js | 1 -
test/unit/compress/test/issue21.js | 6 -
test/unit/compress/test/issue25.js | 7 -
test/unit/compress/test/issue27.js | 1 -
test/unit/compress/test/issue278.js | 1 -
test/unit/compress/test/issue28.js | 3 -
test/unit/compress/test/issue29.js | 1 -
test/unit/compress/test/issue30.js | 3 -
test/unit/compress/test/issue34.js | 3 -
test/unit/compress/test/issue349.js | 25 -
test/unit/compress/test/issue353.js | 4 -
test/unit/compress/test/issue372.js | 32 -
test/unit/compress/test/issue4.js | 3 -
test/unit/compress/test/issue471.js | 1 -
test/unit/compress/test/issue48.js | 1 -
test/unit/compress/test/issue50.js | 9 -
test/unit/compress/test/issue53.js | 1 -
test/unit/compress/test/issue54.1.js | 3 -
test/unit/compress/test/issue68.js | 5 -
test/unit/compress/test/issue69.js | 1 -
test/unit/compress/test/issue9.js | 4 -
test/unit/compress/test/issues222_324.js | 82 -
test/unit/compress/test/mangle.js | 5 -
test/unit/compress/test/null_string.js | 1 -
test/unit/compress/test/strict-equals.js | 3 -
test/unit/compress/test/var.js | 3 -
test/unit/compress/test/whitespace.js | 21 -
test/unit/compress/test/with.js | 2 -
test/unit/scripts.js | 57 -
tmp/hoist.js | 33 -
tmp/instrument.js | 97 -
tmp/test.js | 30 -
tools/node.js | 187 ++
uglify-js.js | 18 -
154 files changed, 10863 insertions(+), 9256 deletions(-)
create mode 100644 .travis.yml
create mode 100644 LICENSE
delete mode 100644 README.html
create mode 100644 README.md
delete mode 100644 README.org
delete mode 100644 docstyle.css
create mode 100644 lib/ast.js
create mode 100644 lib/compress.js
delete mode 100644 lib/consolidator.js
create mode 100644 lib/mozilla-ast.js
create mode 100644 lib/output.js
delete mode 100644 lib/parse-js.js
create mode 100644 lib/parse.js
delete mode 100644 lib/process.js
create mode 100644 lib/scope.js
create mode 100644 lib/sourcemap.js
delete mode 100644 lib/squeeze-more.js
create mode 100644 lib/transform.js
create mode 100644 lib/utils.js
delete mode 100755 test/beautify.js
create mode 100644 test/compress/arrays.js
create mode 100644 test/compress/blocks.js
create mode 100644 test/compress/concat-strings.js
create mode 100644 test/compress/conditionals.js
create mode 100644 test/compress/dead-code.js
create mode 100644 test/compress/debugger.js
create mode 100644 test/compress/drop-unused.js
create mode 100644 test/compress/issue-105.js
create mode 100644 test/compress/issue-12.js
create mode 100644 test/compress/issue-126.js
create mode 100644 test/compress/issue-143.js
create mode 100644 test/compress/issue-22.js
create mode 100644 test/compress/issue-267.js
create mode 100644 test/compress/issue-269.js
create mode 100644 test/compress/issue-44.js
create mode 100644 test/compress/issue-59.js
create mode 100644 test/compress/labels.js
create mode 100644 test/compress/loops.js
create mode 100644 test/compress/negate-iife.js
create mode 100644 test/compress/properties.js
create mode 100644 test/compress/sequences.js
create mode 100644 test/compress/switch.js
create mode 100644 test/compress/typeof.js
create mode 100755 test/run-tests.js
delete mode 100755 test/testconsolidator.js
delete mode 100755 test/testparser.js
delete mode 100644 test/unit/compress/expected/1e21.js
delete mode 100644 test/unit/compress/expected/array1.js
delete mode 100644 test/unit/compress/expected/array2.js
delete mode 100644 test/unit/compress/expected/array3.js
delete mode 100644 test/unit/compress/expected/array4.js
delete mode 100644 test/unit/compress/expected/assignment.js
delete mode 100644 test/unit/compress/expected/concatstring.js
delete mode 100644 test/unit/compress/expected/const.js
delete mode 100644 test/unit/compress/expected/div-with-regexp.js
delete mode 100644 test/unit/compress/expected/empty-blocks.js
delete mode 100644 test/unit/compress/expected/forstatement.js
delete mode 100644 test/unit/compress/expected/if-not.js
delete mode 100644 test/unit/compress/expected/if.js
delete mode 100644 test/unit/compress/expected/ifreturn.js
delete mode 100644 test/unit/compress/expected/ifreturn2.js
delete mode 100644 test/unit/compress/expected/infinite.js
delete mode 100644 test/unit/compress/expected/issue10.js
delete mode 100644 test/unit/compress/expected/issue11.js
delete mode 100644 test/unit/compress/expected/issue13.js
delete mode 100644 test/unit/compress/expected/issue14.js
delete mode 100644 test/unit/compress/expected/issue16.js
delete mode 100644 test/unit/compress/expected/issue17.js
delete mode 100644 test/unit/compress/expected/issue20.js
delete mode 100644 test/unit/compress/expected/issue21.js
delete mode 100644 test/unit/compress/expected/issue25.js
delete mode 100644 test/unit/compress/expected/issue27.js
delete mode 100644 test/unit/compress/expected/issue278.js
delete mode 100644 test/unit/compress/expected/issue28.js
delete mode 100644 test/unit/compress/expected/issue29.js
delete mode 100644 test/unit/compress/expected/issue30.js
delete mode 100644 test/unit/compress/expected/issue34.js
delete mode 100644 test/unit/compress/expected/issue349.js
delete mode 100644 test/unit/compress/expected/issue353.js
delete mode 100644 test/unit/compress/expected/issue372.js
delete mode 100644 test/unit/compress/expected/issue4.js
delete mode 100644 test/unit/compress/expected/issue471.js
delete mode 100644 test/unit/compress/expected/issue48.js
delete mode 100644 test/unit/compress/expected/issue50.js
delete mode 100644 test/unit/compress/expected/issue53.js
delete mode 100644 test/unit/compress/expected/issue54.1.js
delete mode 100644 test/unit/compress/expected/issue68.js
delete mode 100644 test/unit/compress/expected/issue69.js
delete mode 100644 test/unit/compress/expected/issue9.js
delete mode 100644 test/unit/compress/expected/issues222_324.js
delete mode 100644 test/unit/compress/expected/mangle.js
delete mode 100644 test/unit/compress/expected/null_string.js
delete mode 100644 test/unit/compress/expected/strict-equals.js
delete mode 100644 test/unit/compress/expected/var.js
delete mode 100644 test/unit/compress/expected/whitespace.js
delete mode 100644 test/unit/compress/expected/with.js
delete mode 100644 test/unit/compress/test/1e21.js
delete mode 100644 test/unit/compress/test/array1.js
delete mode 100644 test/unit/compress/test/array2.js
delete mode 100644 test/unit/compress/test/array3.js
delete mode 100644 test/unit/compress/test/array4.js
delete mode 100644 test/unit/compress/test/assignment.js
delete mode 100644 test/unit/compress/test/concatstring.js
delete mode 100644 test/unit/compress/test/const.js
delete mode 100644 test/unit/compress/test/div-with-regexp.js
delete mode 100644 test/unit/compress/test/empty-blocks.js
delete mode 100644 test/unit/compress/test/forstatement.js
delete mode 100644 test/unit/compress/test/if-not.js
delete mode 100644 test/unit/compress/test/if.js
delete mode 100644 test/unit/compress/test/ifreturn.js
delete mode 100644 test/unit/compress/test/ifreturn2.js
delete mode 100644 test/unit/compress/test/infinite.js
delete mode 100644 test/unit/compress/test/issue10.js
delete mode 100644 test/unit/compress/test/issue11.js
delete mode 100644 test/unit/compress/test/issue13.js
delete mode 100644 test/unit/compress/test/issue14.js
delete mode 100644 test/unit/compress/test/issue16.js
delete mode 100644 test/unit/compress/test/issue17.js
delete mode 100644 test/unit/compress/test/issue20.js
delete mode 100644 test/unit/compress/test/issue21.js
delete mode 100644 test/unit/compress/test/issue25.js
delete mode 100644 test/unit/compress/test/issue27.js
delete mode 100644 test/unit/compress/test/issue278.js
delete mode 100644 test/unit/compress/test/issue28.js
delete mode 100644 test/unit/compress/test/issue29.js
delete mode 100644 test/unit/compress/test/issue30.js
delete mode 100644 test/unit/compress/test/issue34.js
delete mode 100644 test/unit/compress/test/issue349.js
delete mode 100644 test/unit/compress/test/issue353.js
delete mode 100644 test/unit/compress/test/issue372.js
delete mode 100644 test/unit/compress/test/issue4.js
delete mode 100644 test/unit/compress/test/issue471.js
delete mode 100644 test/unit/compress/test/issue48.js
delete mode 100644 test/unit/compress/test/issue50.js
delete mode 100644 test/unit/compress/test/issue53.js
delete mode 100644 test/unit/compress/test/issue54.1.js
delete mode 100644 test/unit/compress/test/issue68.js
delete mode 100644 test/unit/compress/test/issue69.js
delete mode 100644 test/unit/compress/test/issue9.js
delete mode 100644 test/unit/compress/test/issues222_324.js
delete mode 100644 test/unit/compress/test/mangle.js
delete mode 100644 test/unit/compress/test/null_string.js
delete mode 100644 test/unit/compress/test/strict-equals.js
delete mode 100644 test/unit/compress/test/var.js
delete mode 100644 test/unit/compress/test/whitespace.js
delete mode 100644 test/unit/compress/test/with.js
delete mode 100644 test/unit/scripts.js
delete mode 100644 tmp/hoist.js
delete mode 100644 tmp/instrument.js
delete mode 100755 tmp/test.js
create mode 100644 tools/node.js
delete mode 100644 uglify-js.js
--
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