defineAccessor

abstract fun defineAccessor(name: String, read: () -> Any??, write: (JsValue) -> Unit?, flags: PropertyFlags)(source)

Defines an accessor property whose halves call back into the host. Either can be null.