estree-util-value-to-estree allows prototype pollution in generated ESTree
When generating an ESTree from a value with a property named proto, valueToEstree would generate an object that specifies a prototype instead. Example: import { generate } from 'astring' import { valueToEstree } from 'estree-util-value-to-estree' const estree = valueToEstree({ ['proto']: {} }) const code = generate(estree) console.log(code) Output: { "proto": {} }