[FIX] compiler: call dynamic templates with correct this

This commit is contained in:
Géry Debongnie
2021-11-25 17:22:31 +01:00
committed by Mathieu Duckerts-Antoine
parent 13c3178760
commit a1d435c5a5
6 changed files with 61 additions and 6 deletions
@@ -304,7 +304,7 @@ exports[`t-call (template calling) dynamic t-call 3`] = `
return function template(ctx, node, key = \\"\\") {
const template2 = (ctx['template']);
let b2 = call(template2, ctx, node, key + \`__1\`);
let b2 = call(this, template2, ctx, node, key + \`__1\`);
return block1([], [b2]);
}
}"