From: 山吹色御守 <85992002+KazariEX@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:13:24 +0000 (+0800) Subject: fix(compiler-core): use `isProp.arg.loc` instead of `isProp.loc` (#11547) X-Git-Tag: v3.4.37~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=236fb7abebe567b73826a3ddc2120f3273377ba0;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-core): use `isProp.arg.loc` instead of `isProp.loc` (#11547) --- diff --git a/packages/compiler-core/src/transforms/transformElement.ts b/packages/compiler-core/src/transforms/transformElement.ts index ebaf08375b..e40280bd1f 100644 --- a/packages/compiler-core/src/transforms/transformElement.ts +++ b/packages/compiler-core/src/transforms/transformElement.ts @@ -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) }