pull/3945/head
Rich Harris 6 years ago
parent 3ff1cffb4f
commit acdf8928b1

@ -175,11 +175,7 @@ export default class Renderer {
if (!variable.hoistable) { if (!variable.hoistable) {
head = x`#ctx[${i}]`; head = x`#ctx[${i}]`;
} }
} else { } else if (i !== undefined) {
if (i === undefined) {
throw new Error(`attempted to reference unknown value`);
}
head = x`#ctx[${i}]`; head = x`#ctx[${i}]`;
} }

Loading…
Cancel
Save