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

Function createJSRuntime

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

Source from the content-addressed store, hash-verified

66}
67
68const createJSRuntime = () => {
69 // This worker will run the application javascript code,
70 // making sure that it's run in an environment without a global
71 // document, to make it consistent with the JSC executor environment.
72 // eslint-disable-next-line
73 worker = new Worker(`${__webpack_public_path__}RNDebuggerWorker.js`);
74 worker.addEventListener('message', workerOnMessage)
75 window.addEventListener('message', onWindowMessage)
76 actions.setDebuggerWorker(worker, 'connected')
77}
78
79const shutdownJSRuntime = () => {
80 const { setDebuggerWorker } = actions

Callers 1

connectToDebuggerProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected