Skip to content

Commit 4e65383

Browse files
committed
feat: disallow runtime
1 parent 652ac28 commit 4e65383

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
@@ -604,6 +604,10 @@ export function compileScript(
604604
}
605605
hasDefineSlotsCall = true
606606

607+
if (node.arguments) {
608+
error(`${DEFINE_SLOTS}() cannot accept arguments`, node)
609+
}
610+
607611
if (declId) {
608612
s.overwrite(
609613
startOffset + node.start!,

0 commit comments

Comments
 (0)