(segments: ReadonlyArray<string>)
| 45 | const UNSAFE_ALIAS_SEGMENTS = new Set([`__proto__`, `prototype`, `constructor`]) |
| 46 | |
| 47 | function assertSafeAliasSegments(segments: ReadonlyArray<string>): void { |
| 48 | for (const seg of segments) { |
| 49 | if (UNSAFE_ALIAS_SEGMENTS.has(seg)) { |
| 50 | throw new UnsafeAliasPathError(seg) |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Processes a merge operation by merging source values into the target path |
no test coverage detected
searching dependent graphs…