File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
packages/browser/src/client/public Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 1- import { channel , client } from '@vitest/browser/client'
1+ import { client } from '@vitest/browser/client'
22
33function serializeError ( unhandledError ) {
44 const state = globalThis . __vitest_worker__
@@ -69,19 +69,6 @@ async function reportUnexpectedError(
6969 await client . waitForConnection ( ) . then ( ( ) => {
7070 return client . rpc . onUnhandledError ( processedError , type )
7171 } ) . catch ( console . error )
72- const state = __vitest_browser_runner__
73-
74- if ( state . type === 'orchestrator' ) {
75- return
76- }
77-
78- if ( ! state . runTests || ! __vitest_worker__ . current ) {
79- channel . postMessage ( {
80- // TODO: what to do in this case now?
81- event : 'response:???' ,
82- iframeId : state . iframeId ,
83- } )
84- }
8572}
8673
8774registerUnexpectedErrors ( )
You can’t perform that action at this time.
0 commit comments