code: function destroy(stack) {
    if (stack.length > 0) {
      for (const chunk of stack) {
        if (isTemplateResult(chunk)) {
          chunk.destroy(true);
        }
      }
    }
    stack.length = 0;
  }
docs: Permanently destroy all remaining TemplateResults in "stack".
  (Triggered on error)
  
  @param { Array<any> } stack