()
| 203 | } |
| 204 | |
| 205 | deoptimizeCache(): void { |
| 206 | if (this.propertyKey === this.dynamicPropertyKey) return; |
| 207 | const { expressionsToBeDeoptimized, object } = this; |
| 208 | this.expressionsToBeDeoptimized = EMPTY_ARRAY as unknown as DeoptimizableEntity[]; |
| 209 | this.dynamicPropertyKey = this.propertyKey; |
| 210 | object.deoptimizePath(UNKNOWN_PATH); |
| 211 | if (this.included) { |
| 212 | object.includePath(UNKNOWN_PATH, createInclusionContext()); |
| 213 | } |
| 214 | for (const expression of expressionsToBeDeoptimized) { |
| 215 | expression.deoptimizeCache(); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | deoptimizePath(path: ObjectPath): void { |
| 220 | if (path.length === 0) this.disallowNamespaceReassignment(); |
nothing calls this directly
no test coverage detected