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

Method setJs

valdi/src/valdi/runtime/Resources/Bundle.cpp:214–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void Bundle::setJs(const StringBox& jsPath, const JavaScriptFile& jsFile) {
215 std::lock_guard<std::recursive_mutex> guard(_mutex);
216 _jsFilesByPath[jsPath] = jsFile;
217}
218
219Result<BundleResourceContent> Bundle::getResourceContent(const StringBox& path) {
220 std::lock_guard<std::recursive_mutex> guard(_mutex);

Callers 2

updateResourcesMethod · 0.80
populateSourceMapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected