Skip to content

Commit 5c3a153

Browse files
committed
oops
1 parent a146440 commit 5c3a153

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ export function CallExpression(node, context) {
120120
e.state_invalid_placement(node, rune);
121121
}
122122

123+
if (node.arguments.length > 1) {
124+
e.rune_invalid_arguments_length(node, rune, 'zero or one arguments');
125+
}
126+
123127
break;
124128
case '$state.raw':
125129
case '$derived':

0 commit comments

Comments
 (0)