Skip to content

Commit f2c48f5

Browse files
authored
fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404)
1 parent 6283b2e commit f2c48f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/compileScript.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ export function compileScript(
12071207
checkInvalidScopeReference(propsRuntimeDecl, DEFINE_PROPS)
12081208
checkInvalidScopeReference(propsRuntimeDefaults, DEFINE_PROPS)
12091209
checkInvalidScopeReference(propsDestructureDecl, DEFINE_PROPS)
1210-
checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_PROPS)
1210+
checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_EMITS)
12111211

12121212
// 6. remove non-script content
12131213
if (script) {

0 commit comments

Comments
 (0)