| 159 | } |
| 160 | |
| 161 | void Bundle::setEntry(const StringBox& path, const BytesView& data) { |
| 162 | std::lock_guard<std::recursive_mutex> guard(_mutex); |
| 163 | |
| 164 | const auto& it = _entryByPath.find(path); |
| 165 | if (it == _entryByPath.end()) { |
| 166 | _allEntryPaths.emplace_back(path); |
| 167 | } |
| 168 | _entryByPath[path] = data; |
| 169 | } |
| 170 | |
| 171 | Result<JavaScriptFile> Bundle::getJs(const StringBox& jsPath) { |
| 172 | std::lock_guard<std::recursive_mutex> guard(_mutex); |
no test coverage detected