JSContextGetGlobalContext top-level property

JSGlobalContextRef Function(JSContextRef ctx) JSContextGetGlobalContext
final

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

Implementation

final JSGlobalContextRef Function(JSContextRef ctx) JSContextGetGlobalContext =
    kLookup<NativeFunction<JSGlobalContextRef Function(JSContextRef)>>(
      'JSContextGetGlobalContext',
    ).asFunction();