* Throw if `key` is a reserved object-machinery name that can never be written * as a frontmatter property (see isReservedFrontmatterKey). Centralizes * the refusal so every dynamic `frontmatter[key] = value` sink in the controller * - `addYamlProp`, `updatePropertyInFile`, `u
(key: string)
| 665 | * the change (or polluting the prototype) while reporting success. |
| 666 | */ |
| 667 | private assertWritableKey(key: string): void { |
| 668 | if (isReservedFrontmatterKey(key)) { |
| 669 | throw new Error(`"${key}" is a reserved property name and cannot be written to frontmatter.`); |
| 670 | } |
| 671 | } |
| 672 | |
| 673 | private async updateMultipleInFile(properties: Property[], file: TFile): Promise<void> { |
| 674 | // Refuse a batch with ANY reserved YAML key BEFORE the write starts. This |
no test coverage detected