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