jSGlobalContextRetain top-level property

Pointer<NativeType> Function(Pointer<NativeType> 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 Pointer Function(Pointer ctx) jSGlobalContextRetain = jscLib
    .lookup<NativeFunction<Pointer Function(Pointer)>>('JSGlobalContextRetain')
    .asFunction();