MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / shutdownJSRuntime

Function shutdownJSRuntime

app/middlewares/debuggerAPI.js:79–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79const shutdownJSRuntime = () => {
80 const { setDebuggerWorker } = actions
81 scriptExecuted = false
82 if (worker) {
83 worker.terminate()
84 window.removeEventListener('message', onWindowMessage)
85 setDevMenuMethods([])
86 }
87 worker = null
88 setDebuggerWorker(null, 'disconnected')
89}
90
91const isScriptBuildForAndroid = (url) => url && (url.indexOf('.android.bundle') > -1 || url.indexOf('platform=android') > -1)
92

Callers 2

connectToDebuggerProxyFunction · 0.85
setDebuggerLocFunction · 0.85

Calls 2

setDevMenuMethodsFunction · 0.90
setDebuggerWorkerFunction · 0.85

Tested by

no test coverage detected