update links to repository after rename (#3847)

This commit is contained in:
Alex Lam S.L
2020-05-05 14:07:33 +01:00
committed by GitHub
parent ffa1943177
commit 6bf1486935
13 changed files with 28 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
https://github.com/mishoo/UglifyJS2
https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
@@ -212,7 +212,7 @@ merge(Compressor.prototype, {
node.hoist_declarations(this);
node.process_boolean_returns(this);
}
// Before https://github.com/mishoo/UglifyJS2/pull/1602 AST_Node.optimize()
// Before https://github.com/mishoo/UglifyJS/pull/1602 AST_Node.optimize()
// would call AST_Node.transform() if a different instance of AST_Node is
// produced after OPT().
// This corrupts TreeWalker.stack, which cause AST look-ups to malfunction.
@@ -4392,7 +4392,7 @@ merge(Compressor.prototype, {
}
if (node instanceof AST_LabeledStatement && node.body instanceof AST_For) {
// Certain combination of unused name + side effect leads to invalid AST:
// https://github.com/mishoo/UglifyJS2/issues/1830
// https://github.com/mishoo/UglifyJS/issues/1830
// We fix it at this stage by moving the label inwards, back to the `for`.
descend(node, tt);
if (node.body instanceof AST_BlockStatement) {
@@ -4413,9 +4413,9 @@ merge(Compressor.prototype, {
}, function(node, in_list) {
if (node instanceof AST_For) {
// Certain combination of unused name + side effect leads to invalid AST:
// https://github.com/mishoo/UglifyJS2/issues/44
// https://github.com/mishoo/UglifyJS2/issues/1838
// https://github.com/mishoo/UglifyJS2/issues/3371
// https://github.com/mishoo/UglifyJS/issues/44
// https://github.com/mishoo/UglifyJS/issues/1838
// https://github.com/mishoo/UglifyJS/issues/3371
// We fix it at this stage by moving the `var` outside the `for`.
var block;
if (node.init instanceof AST_BlockStatement) {
@@ -5468,7 +5468,7 @@ merge(Compressor.prototype, {
&& self.condition instanceof AST_Binary && self.condition.operator == "||") {
// although the code length of self.condition and negated are the same,
// negated does not require additional surrounding parentheses.
// see https://github.com/mishoo/UglifyJS2/issues/979
// see https://github.com/mishoo/UglifyJS/issues/979
negated_is_best = true;
}
body.push(make_node(AST_SimpleStatement, self, {
@@ -6087,7 +6087,7 @@ merge(Compressor.prototype, {
return x instanceof AST_String;
})) {
// quite a corner-case, but we can handle it:
// https://github.com/mishoo/UglifyJS2/issues/203
// https://github.com/mishoo/UglifyJS/issues/203
// if the code argument is a constant, then we can minify it.
try {
var code = "n(function(" + self.args.slice(0, -1).map(function(arg) {