workerd icon indicating copy to clipboard operation
workerd copied to clipboard

Recursively freeze JSON bindings/modules

Open isker opened this issue 7 months ago • 0 comments

workerd should recursivelyFreeze JSON data parsed directly from its config. In my mind, these values are application-wide configuration, the mutation of which when handling a request has the potential to result in subtle but serious bugs. It may not be obvious to developers in shared codebases that an object/array they're dealing with is ultimately a perhaps deeply-nested property of a global mutable object. I have unfortunately seen it happen before 🌞.

But of course this would be a breaking change.

isker avatar Jul 19 '24 22:07 isker