ScriptObject.getOwnPropertyOrFieldDescriptor

Returns a property descriptor without searching the prototype chain. The object returned is an object possibly containing get, set, or value fields.

class ScriptObject
getOwnPropertyOrFieldDescriptor
(
in string propName
)

Return Value

A ScriptObject whose dictionary contains possible "get", "set", and "value" fields.

Meta