mm_eslint 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -832,7 +832,7 @@ Detector.prototype._isConstWithName = function (
|
|
|
832
832
|
const is_val_const = this._isValConst(val_node, prop_name);
|
|
833
833
|
|
|
834
834
|
if (is_inst_data_name && is_prim_const) {
|
|
835
|
-
return
|
|
835
|
+
return false; // 实例数据的属性名,即使值是基本类型,也不应视为常量
|
|
836
836
|
}
|
|
837
837
|
|
|
838
838
|
if (is_upper_name && (is_prim_const || is_cfg_obj)) {
|