JSObjectCopyPropertyNames top-level property
JSPropertyNameArrayRef Function(JSContextRef ctx, JSObjectRef object)
JSObjectCopyPropertyNames
final
Gets the names of an object's enumerable properties.
ctx
(JSContextRef) The execution context to use.
object
(JSObjectRef) The object whose property names you want to get.
@result
(JSPropertyNameArrayRef) A JSPropertyNameArray containing the names object's enumerable properties. Ownership follows the Create Rule.
Implementation
final JSPropertyNameArrayRef Function(JSContextRef ctx, JSObjectRef object)
JSObjectCopyPropertyNames =
kLookup<
NativeFunction<JSPropertyNameArrayRef Function(JSContextRef, JSObjectRef)>
>('JSObjectCopyPropertyNames').asFunction();