Skip to content

Commit 4576e31

Browse files
committed
fix(const): remove assignment error
1 parent 7ce537e commit 4576e31

File tree

1 file changed

+0
-14
lines changed
  • packages/translator-tags/src/core

1 file changed

+0
-14
lines changed

packages/translator-tags/src/core/const.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,6 @@ export default {
4949
upstreamAlias,
5050
(valueAttr.value.extra ??= {}),
5151
);
52-
53-
for (const identifier of Object.values(
54-
tag.get("var").getBindingIdentifiers(),
55-
)) {
56-
const binding = tag.scope.getBinding(identifier.name);
57-
if (binding) {
58-
const violations = binding?.constantViolations;
59-
if (violations && violations.length > 0) {
60-
throw violations[0].buildCodeFrameError(
61-
"Cannot assign to a 'const' tag variable.",
62-
);
63-
}
64-
}
65-
}
6652
},
6753
translate(tag) {
6854
const { node } = tag;

0 commit comments

Comments
 (0)