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

Method postInit

valdi/src/valdi/runtime/JavaScript/JavaScriptWorker.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 auto onmessage =
43 entry.jsContext.getObjectProperty(globalObj.get(), onMessageKey.toStringView(), entry.exceptionTracker);
44 return entry.jsContext.isValueFunction(onmessage.get()) ? std::move(onmessage) : entry.jsContext.newUndefined();
45}
46
47const StringBox& JavaScriptWorker::getSendANRAttribution() const {
48 return _sendANRAttribution;
49}
50
51void JavaScriptWorker::postInit() {
52 constexpr auto reason = JsThreadDispatchReason::WorkerPostInit;

Callers

nothing calls this directly

Calls 3

doPostInitMethod · 0.95
strongSmallRefFunction · 0.85
dispatchOnJsThreadMethod · 0.45

Tested by

no test coverage detected