(
ast: A,
f: (
d: { [P in keyof A]: TypedPropertyDescriptor<A[P]> }
) => void
)
| 3323 | } |
| 3324 | |
| 3325 | function modifyOwnPropertyDescriptors<A extends AST>( |
| 3326 | ast: A, |
| 3327 | f: ( |
| 3328 | d: { [P in keyof A]: TypedPropertyDescriptor<A[P]> } |
| 3329 | ) => void |
| 3330 | ): A { |
| 3331 | const d = Object.getOwnPropertyDescriptors(ast) |
| 3332 | f(d) |
| 3333 | return Object.create(Object.getPrototypeOf(ast), d) |
| 3334 | } |
| 3335 | |
| 3336 | const contextOwners = new WeakMap<AST, AST>() |
| 3337 |
no test coverage detected