(namespace)
| 75260 | } else { |
| 75261 | enabledNamespaces.push(new RegExp(`^${ns}$`)); |
| 75262 | } |
| 75263 | } |
| 75264 | for (const instance of debuggers) { |
| 75265 | instance.enabled = enabled(instance.namespace); |
| 75266 | } |
| 75267 | } |
| 75268 | function enabled(namespace) { |
| 75269 | if (namespace.endsWith("*")) { |
| 75270 | return true; |
| 75271 | } |
| 75272 | for (const skipped of skippedNamespaces) { |
| 75273 | if (skipped.test(namespace)) { |
| 75274 | return false; |
| 75275 | } |
| 75276 | } |
| 75277 | for (const enabledNamespace of enabledNamespaces) { |
| 75278 | if (enabledNamespace.test(namespace)) { |
| 75279 | return true; |
| 75280 | } |
no test coverage detected