objectDefinePropertyData

fun objectDefinePropertyData(propertyName: String, flags: ValuePropertyFlags, propertyValue: Value? = null)

Define or modify a property with @property_name in object referenced by @value. This is equivalent to JavaScript Object.defineProperty() when used with a data descriptor.

Parameters

propertyName

the name of the property to define

flags

#JSCValuePropertyFlags

propertyValue

the default property value