WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/terser/lib/utils/index.js
@@ -43,7 +43,7 @@
"use strict";
import { AST_Node } from "../ast.js";
import { AST_Node, AST_Number, AST_UnaryPrefix } from "../ast.js";
function characters(str) {
    return str.split("");
@@ -128,6 +128,15 @@
        if (!props.end) props.end = orig.end;
    }
    return new ctor(props);
}
/** Makes a `void 0` expression. Use instead of AST_Undefined which may conflict
 * with an existing variable called `undefined` */
function make_void_0(orig) {
    return make_node(AST_UnaryPrefix, orig, {
        operator: "void",
        expression: make_node(AST_Number, orig, { value: 0 })
    });
}
function push_uniq(array, el) {
@@ -272,6 +281,7 @@
    HOP,
    keep_name,
    make_node,
    make_void_0,
    makePredicate,
    map_add,
    map_from_object,