| 197 | } |
| 198 | |
| 199 | std::vector<StringBox> Bundle::getAllJsPaths() { |
| 200 | std::lock_guard<std::recursive_mutex> guard(_mutex); |
| 201 | lockFreeLoadEntriesIfNeeded(); |
| 202 | |
| 203 | std::vector<StringBox> output; |
| 204 | for (const auto& entryPath : _allEntryPaths) { |
| 205 | if (entryPath.hasSuffix(".js")) { |
| 206 | auto withoutExtension = entryPath.substring(0, entryPath.length() - 3); |
| 207 | output.emplace_back(withoutExtension); |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | return output; |
| 212 | } |
| 213 | |
| 214 | void Bundle::setJs(const StringBox& jsPath, const JavaScriptFile& jsFile) { |
| 215 | std::lock_guard<std::recursive_mutex> guard(_mutex); |
no test coverage detected