in x-element.js [211:223]
render() {
const { template, properties, renderRoot, render } = XElement.#hosts.get(this);
const result = template(properties, this);
try {
render(renderRoot, result);
} catch (error) {
const pathString = XElement.#toPathString(this);
// @ts-ignore — TypeScript doesn’t get that this can accept any class.
const tagName = customElements.getName(this.constructor);
const message = `Invalid template for "${this.constructor.name}" / <${tagName}> at path "${pathString}".`;
throw new Error(message, { cause: error });
}
}