(directives, key)
| 102 | } |
| 103 | |
| 104 | function markInvalidCacheControlDirective (directives, key) { |
| 105 | let invalidDirectives = directives[kInvalidCacheControlDirectives] |
| 106 | |
| 107 | if (invalidDirectives === undefined) { |
| 108 | invalidDirectives = new Set() |
| 109 | Object.defineProperty(directives, kInvalidCacheControlDirectives, { |
| 110 | value: invalidDirectives |
| 111 | }) |
| 112 | } |
| 113 | |
| 114 | invalidDirectives.add(key) |
| 115 | } |
| 116 | |
| 117 | function hasInvalidCacheControlDirective (directives, key) { |
| 118 | return directives[kInvalidCacheControlDirectives]?.has(key) === true |
no test coverage detected