mirror of https://github.com/vuejs/core.git
fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404)
This commit is contained in:
parent
6283b2ec41
commit
f2c48f5352
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue