Skip to content

Commit 98b5a3d

Browse files
committed
feat: disallow runtime
1 parent 9f1ce62 commit 98b5a3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,10 @@ export function compileScript(
618618
}
619619
hasDefineSlotsCall = true
620620

621+
if (node.arguments) {
622+
error(`${DEFINE_SLOTS}() cannot accept arguments`, node)
623+
}
624+
621625
if (declId) {
622626
s.overwrite(
623627
startOffset + node.start!,

0 commit comments

Comments
 (0)