current_element is guaranteed to not be null in pop_element

pull/11585/head
Rich Harris 2 years ago
parent 6b2eb4743c
commit 9787e26f06

@ -89,7 +89,5 @@ export function push_element(payload, tag, line, column) {
}
export function pop_element() {
if (current_element !== null) {
current_element = current_element.parent;
}
current_element = /** @type {Element} */ (current_element).parent;
}

Loading…
Cancel
Save