MCPcopy
hub / github.com/vuejs/core / resetPageErrorHandlers

Function resetPageErrorHandlers

packages/vue/__tests__/e2e/e2eBrowserUtils.ts:193–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191 const initialHeadNodes = new Set<Node>(Array.from(document.head.childNodes))
192
193 function resetPageErrorHandlers() {
194 pageErrorHandlers.forEach(({ error, rejection }) => {
195 window.removeEventListener('error', error)
196 window.removeEventListener('unhandledrejection', rejection)
197 })
198 pageErrorHandlers.clear()
199 }
200
201 function resetHead() {
202 Array.from(document.head.childNodes).forEach(node => {

Callers 1

resetPageFunction · 0.85

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected