Skip to content

Commit 9291750

Browse files
committed
Fix interpolate test
1 parent f6499bf commit 9291750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/parse/interpreter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ export class ASTInterpreter {
540540
*/
541541
identifier(name, context, create) {
542542
return (scope, locals) => {
543-
const base = locals && name in locals ? locals : (scope.$proxy ?? scope);
543+
const base =
544+
locals && name in locals ? locals : ((scope && scope.$proxy) ?? scope);
544545
if (create && create !== 1 && base && base[name] == null) {
545546
base[name] = {};
546547
}

0 commit comments

Comments
 (0)