steel-frame 7.1.0 → 7.1.1
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.
|
@@ -515,7 +515,13 @@ export function ignoreParams(path, internal, allowReactiveId, restrictDestructio
|
|
|
515
515
|
// param is object destruction
|
|
516
516
|
else if (path.isObjectPattern()) {
|
|
517
517
|
if (restrictDestruction) {
|
|
518
|
-
|
|
518
|
+
for (const element of path.get("properties")) {
|
|
519
|
+
const key = element.get("key");
|
|
520
|
+
/* istanbul ignore else */
|
|
521
|
+
if (key.isIdentifier() && isReactiveName(key.node.name, internal)) {
|
|
522
|
+
err(Errors.RulesOfVasille, key, "Extract reactive fields inside the function body", internal);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
519
525
|
}
|
|
520
526
|
ignoreObjectPattern(path, internal);
|
|
521
527
|
}
|