jSObjectGetPrototype top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx, Pointer<NativeType> object) jSObjectGetPrototype
final

Gets an object's prototype. ctx (JSContextRef) The execution context to use. object (JSObjectRef) A JSObject whose prototype you want to get. @result (JSValueRef) A JSValue that is the object's prototype.

Implementation

final Pointer Function(Pointer ctx, Pointer object) jSObjectGetPrototype =
    JscFfi.lib
        .lookup<NativeFunction<Pointer Function(Pointer, Pointer)>>(
            'JSObjectGetPrototype')
        .asFunction();