Match ctx variable name for get_then/catch_context

pull/8386/head
Nguyen Tran 4 years ago
parent 4ce018b0b5
commit 8d1a9fb328

@ -102,7 +102,7 @@ class AwaitBlockBranch extends Wrapper {
const to_ctx = name => this.renderer.reference(name);
if (prop.type === 'ComputedProperty') {
const expression = new Expression(this.renderer.component, this.node, this.has_consts(this.node) ? this.node.scope : null, prop.key);
return b`const ${prop.property_name} = ${expression.manipulate(this.block, 'ctx')};`;
return b`const ${prop.property_name} = ${expression.manipulate(this.block, '#ctx')};`;
} else {
return b`#ctx[${this.block.renderer.context_lookup.get(prop.key.name).index}] = ${prop.default_modifier(prop.modifier(x`#ctx[${this.value_index}]`), to_ctx)};`;
}

Loading…
Cancel
Save