(name: string)
| 265 | |
| 266 | // returns a policy with the named rule removed (immutable). |
| 267 | withoutRule(name: string): ScriptSecurityPolicy { |
| 268 | return new ScriptSecurityPolicy(this.rules.filter(r => r.name !== name)); |
| 269 | } |
| 270 | |
| 271 | // returns parallel `names` / `values` arrays for all rules that carry a runtime mask. |
| 272 | // Pass `violationCheck` to forward the caller's filtered checker (e.g. to eval-intercept). |
no test coverage detected