Skip to content

Commit edbb43b

Browse files
committed
feat: disallow runtime
1 parent d81bf0b commit edbb43b

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
@@ -617,6 +617,10 @@ export function compileScript(
617617
}
618618
hasDefineSlotsCall = true
619619

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

0 commit comments

Comments
 (0)