WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/javascript/BasicEvaluatedExpression.js
@@ -185,7 +185,7 @@
   }
   /**
    * Gets the compile-time value of the expression
    * As compile time value.
    * @returns {undefined | null | string | number | boolean | RegExp | EXPECTED_ANY[] | bigint} the javascript value
    */
   asCompileTimeValue() {
@@ -296,6 +296,7 @@
      if (this.isBigInt()) return `${this.bigint}`;
      if (this.isRegExp()) return `${this.regExp}`;
      if (this.isArray()) {
         /** @type {string[]} */
         const array = [];
         for (const item of /** @type {BasicEvaluatedExpression[]} */ (
            this.items
@@ -321,6 +322,7 @@
   }
   /**
    * Updates string using the provided string.
    * @param {string} string value
    * @returns {BasicEvaluatedExpression} basic evaluated expression
    */
@@ -446,7 +448,7 @@
   }
   /**
    * Adds options to a conditional expression.
    * Adds the provided basic evaluated expression to the basic evaluated expression.
    * @param {BasicEvaluatedExpression[]} options optional (consequent/alternate) expressions to be added
    * @returns {this} this
    */
@@ -561,6 +563,7 @@
}
/**
 * Returns is valid flags.
 * @param {string} flags regexp flags
 * @returns {boolean} is valid flags
 */