]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404)
authorTravis <godxiaoji@163.com>
Fri, 13 May 2022 01:08:28 +0000 (09:08 +0800)
committerGitHub <noreply@github.com>
Fri, 13 May 2022 01:08:28 +0000 (21:08 -0400)
packages/compiler-sfc/src/compileScript.ts

index 658b0fd0c7b75a714800df08a981a8090aa611a4..ed993521fc52a7111e205a9218ebceaa49c062bd 100644 (file)
@@ -1207,7 +1207,7 @@ export function compileScript(
   checkInvalidScopeReference(propsRuntimeDecl, DEFINE_PROPS)
   checkInvalidScopeReference(propsRuntimeDefaults, DEFINE_PROPS)
   checkInvalidScopeReference(propsDestructureDecl, DEFINE_PROPS)
-  checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_PROPS)
+  checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_EMITS)
 
   // 6. remove non-script content
   if (script) {