MCPcopy Index your code
hub / github.com/witheve/Eve / init

Function init

src/runtime/browser.ts:64–78  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

62//---------------------------------------------------------------------
63
64export function init(code) {
65 global["browser"] = true;
66
67 responder = new BrowserRuntimeClient(client);
68 responder.load(code || "", "user");
69
70 global["evaluation"] = responder;
71
72 global["save"] = () => {
73 responder.handleEvent(JSON.stringify({type: "dumpState"}));
74 }
75
76 // client.socket.onopen();
77 // responder.handleEvent(JSON.stringify({type: "findPerformance", requestId: 2}));
78}

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected