Fix issue where contexts is not an array

pull/8418/head
Nguyen Tran 4 years ago
parent 791dcf0e4d
commit a46ad17e8a

@ -99,9 +99,7 @@ class AwaitBlockBranch extends Wrapper {
}
render_get_context() {
if (this.has_consts(this.node)) {
resolve_computed_prop_conflicts(this.block, this.value_contexts, this.node.const_tags);
}
resolve_computed_prop_conflicts(this.block, this.is_destructured ? this.value_contexts : [], this.has_consts(this.node) ? this.node.const_tags : []);
const props = this.is_destructured ? this.value_contexts.map(prop => {
if (prop.type === 'ComputedProperty') {

Loading…
Cancel
Save