The `Object.freeze()` method freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being
npm install @extendscript/aes.patch.object.freeze> ES5 Sham
The Object.freeze() method freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed, it also prevents the prototype from being changed. The method returns the passed object.
> __WARNING__ Silently fails in ExtendScript. This should be fine unless you are depending on the safety and security provisions of this method.
Source: ps-scripting-es5shim
npm install @extendscript/aes.patch.object.freeze
You can test the code against a range of targets:
npm run test target-1 target-2
We keep a log of test results