jSContextGetGlobalObject top-level property
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();