fix(compiler-core): use `isProp.arg.loc` instead of `isProp.loc` (#11547)

This commit is contained in:
山吹色御守 2024-08-08 17:13:24 +08:00 committed by GitHub
parent 29e4a1109a
commit 236fb7abeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ export function resolveComponentType(
exp = isProp.exp
if (!exp) {
// #10469 handle :is shorthand
exp = createSimpleExpression(`is`, false, isProp.loc)
exp = createSimpleExpression(`is`, false, isProp.arg!.loc)
if (!__BROWSER__) {
exp = isProp.exp = processExpression(exp, context)
}