Skip to content

Latest commit

 

History

History
 
 

object.preventextensions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

object.preventextensions

version

ES5 Sham

The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the 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

Install

npm install @extendscript/aes.patch.object.preventextensions

Include

#include 'node_modules/@extendscript/aes.patch.object.preventextensions/preventextensions.js'

Test

You can test the code against a range of targets:

npm run test target-1 target-2

We keep a log of test results