Skip to content

Latest commit

 

History

History

object.seal

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

object.seal

version

ES5 Sham

The Object.seal() method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable.

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.seal

Include

#include 'node_modules/@extendscript/aes.patch.object.seal/seal.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