(defaultModule)
| 242 | let stalkedCount = 0; |
| 243 | |
| 244 | function scopeSetFor(defaultModule) { |
| 245 | if (CONFIG.onlyLogScopeModules && CONFIG.onlyLogScopeModules.length) { |
| 246 | return new Set(CONFIG.onlyLogScopeModules); |
| 247 | } |
| 248 | return defaultModule ? new Set([defaultModule]) : null; // null => no scope filter |
| 249 | } |
| 250 | |
| 251 | function inScope(state, lib) { |
| 252 | if (!state.scope) return true; // no scope => allow all |