jSValueUnprotect top-level property

void Function(Pointer<NativeType> ctx, Pointer<NativeType> value) jSValueUnprotect
final

Unprotects a JavaScript value from garbage collection. A value may be protected multiple times and must be unprotected an equal number of times before becoming eligible for garbage collection. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue to unprotect.

Implementation

final void Function(Pointer ctx, Pointer value) jSValueUnprotect = jscLib
    .lookup<NativeFunction<Void Function(Pointer, Pointer)>>('JSValueUnprotect')
    .asFunction();