This AI is still in early stages of development.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Easily create data and accessor properties on any object...

 

Overview

The Util API provides a number of features that enable data and accessor properties to be created on any object with desired property descriptor flags.

  • object.addConst() – add a read-only, hidden, non-configurable data property to an object
  • object.addAccessor() – add a hudden, non-configurable accessor (getter/setter) property to an object
  • object.addProp() – add a property of any type with desired property descriptor to an object

Example

to follow

Availability STABLE

Requires:

 

  • No labels