MCPcopy Create free account
hub / github.com/Snapchat/Valdi / lockAllJSContexts

Method lockAllJSContexts

valdi/src/valdi/runtime/JavaScript/JavaScriptRuntime.cpp:3659–3668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3657 if (!jsEntry.exceptionTracker) {
3658 onRecoverableError("daemonClientDisconnected", jsEntry.exceptionTracker);
3659 return;
3660 }
3661 }
3662 });
3663}
3664
3665void JavaScriptRuntime::daemonClientDidReceiveClientPayload(const Shared<IDaemonClient>& daemonClient,
3666 int senderClientId,
3667 const BytesView& payload) {
3668 dispatchOnJsThreadUnattributed([=](JavaScriptEntryParameters& entry) {
3669 const auto& it = _daemonClients.find(daemonClient->getConnectionId());
3670 if (it != _daemonClients.end()) {
3671 auto payloadString = entry.jsContext.newStringUTF8(payload.asStringView(), entry.exceptionTracker);

Callers 2

TEST_PFunction · 0.80
lockNextWorkerMethod · 0.80

Calls

no outgoing calls

Tested by 1

TEST_PFunction · 0.64