JSGlobalContextRetain top-level property

JSGlobalContextRef Function(JSGlobalContextRef ctx) JSGlobalContextRetain
final

Retains a global JavaScript execution context. ctx (JSGlobalContextRef) The JSGlobalContext to retain. @result (JSGlobalContextRef) A JSGlobalContext that is the same as ctx.

Implementation

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