(info) This AI is still in early stages of development.

ACCESSOR_HIDDEN_CONFIG

A non-enumerable, configurable accessor property.

 

Notes

The property will have the following descriptor:

  • Accessor property (a getter/setter)
  • Writable = true (if setter defined) or false (if setter not defined)
  • Enumerable = false (hidden)
  • Configurable = true (can be changed)

Example

someObj.addProp(
	ACCESSOR_HIDDEN_CONFIG,
	"foo",
	function getter() { ... },
	function setter() { ... }
);
Availability STABLE

Requires:

Property Definitions

Topics:

  • object.addAccessor() — Add a hidden, non-configurable accessor property to any object...
  • object.addProp() — Adds a new accessor (getter/setter) or data (value) property to any object, setting it's enumerable, configurable and read-only flags as desired...
  • object.addConst() — Add a hidden, read-only data property to any object...

Â