JSVM_PropertyDescriptor

typedef struct {...} JSVM_PropertyDescriptor

Overview

Defines property descriptor.

Since: 11

Related module: JSVM

Header file: jsvm_types.h

Summary

Member Variables

Name Description
const char* utf8name Property key, which is an optional string in UTF-8 encoding. Either utf8name or name must be provided for a property.
JSVM_Value name Optional JSVM value, which points to the JavaScript string or symbol used as the property key. Either utf8name or name must be provided for a property.
JSVM_Callback method Method represented using the value property of the property descriptor object.
JSVM_Callback getter Callback used to obtain a property.
JSVM_Callback setter Callback used to set a property.
JSVM_Value value Value retrieved by getter of the data property.
JSVM_PropertyAttributes attributes Attributes associated with a specific property.