[FIX] slots: properly bind this in t-on arrow functions

This commit is contained in:
Géry Debongnie
2021-11-25 13:56:56 +01:00
committed by Samuel Degueldre
parent 2b565ce1b4
commit 13c3178760
9 changed files with 283 additions and 150 deletions
@@ -27,7 +27,7 @@ exports[`t-set slot setted value (with t-set) not accessible with t-esc 2`] = `
let block1 = createBlock(\`<div><p><block-text-0/></p><block-child-0/><p><block-text-1/></p></div>\`);
const slot2 = (ctx, node, key) => {
function slot2(ctx, node, key) {
setContextValue(ctx, \\"iter\\", 'inCall');
}