| 14 | namespace tns { |
| 15 | |
| 16 | static inline bool StartsWith(const std::string& s, const char* prefix) { |
| 17 | size_t n = strlen(prefix); |
| 18 | return s.size() >= n && s.compare(0, n, prefix) == 0; |
| 19 | } |
| 20 | |
| 21 | // Per-module hot data and callbacks. Keyed by canonical module path (file path or URL). |
| 22 | static std::unordered_map<std::string, v8::Global<v8::Object>> g_hotData; |
no test coverage detected