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

Method getAllUsedModules

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

Source from the content-addressed store, hash-verified

2762 _onDaemonClientEventFunction.value().get(),
2763 exceptionTracker);
2764 }
2765 }
2766 }
2767}
2768
2769void JavaScriptRuntime::onModuleUnloaded(const ResourceId& resourceId, JavaScriptEntryParameters& /*jsEntry*/) {
2770 if (resourceId == valdiModuleResourceId()) {
2771 _onDaemonClientEventFunction = Result<JSValueRef>();
2772
2773 _contextHandler->removeJsContextHandler();
2774
2775 if (_contextHandler->needsJsContextHandler()) {
2776 _pendingModulesToReload.insert(resourceId);

Callers

nothing calls this directly

Calls 3

insertMethod · 0.65
getAllContextsMethod · 0.45
getPathMethod · 0.45

Tested by

no test coverage detected