jSContextGetGlobalObject top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx) jSContextGetGlobalObject
final

Gets the global object of a JavaScript execution context. ctx (JSContextRef) The JSContext whose global object you want to get. @result (JSObjectRef) ctx's global object.

Implementation

final Pointer Function(Pointer ctx) jSContextGetGlobalObject = JscFfi.lib
    .lookup<NativeFunction<Pointer Function(Pointer)>>(
        'JSContextGetGlobalObject')
    .asFunction();