mirror of https://github.com/vuejs/core.git
fix(compiler-core): use `isProp.arg.loc` instead of `isProp.loc` (#11547)
This commit is contained in:
parent
29e4a1109a
commit
236fb7abeb
|
@ -250,7 +250,7 @@ export function resolveComponentType(
|
||||||
exp = isProp.exp
|
exp = isProp.exp
|
||||||
if (!exp) {
|
if (!exp) {
|
||||||
// #10469 handle :is shorthand
|
// #10469 handle :is shorthand
|
||||||
exp = createSimpleExpression(`is`, false, isProp.loc)
|
exp = createSimpleExpression(`is`, false, isProp.arg!.loc)
|
||||||
if (!__BROWSER__) {
|
if (!__BROWSER__) {
|
||||||
exp = isProp.exp = processExpression(exp, context)
|
exp = isProp.exp = processExpression(exp, context)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue