From: Travis Date: Fri, 13 May 2022 01:08:28 +0000 (+0800) Subject: fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404) X-Git-Tag: v3.2.34-beta.1~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2c48f535250d01133a5e49c0bf2c26a46b6d935;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404) --- diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 658b0fd0c7..ed993521fc 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -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) {