pull/9464/head
Dominic Gannaway 3 years ago
parent c3eac309b3
commit 00de58f450

@ -2416,8 +2416,11 @@ export const template_visitors = {
let callee; let callee;
if (node.name.includes('.')) { if (node.name.includes('.')) {
const parts = node.name.split('.'); const parts = node.name.split('.');
const key = b.key(parts[1]); callee = serialize_get_binding(b.id(parts[0]), state);
callee = b.member(serialize_get_binding(b.id(parts[0]), state), key, key.type === 'Literal'); for (let i = 1; i < parts.length; i++) {
const key = b.key(parts[i]);
callee = b.member(callee, key, key.type === 'Literal');
}
} else { } else {
callee = serialize_get_binding(b.id(node.name), state); callee = serialize_get_binding(b.id(node.name), state);
} }

Loading…
Cancel
Save