Contents

JSValueUnprotect(_:_:)

Unprotects a JavaScript value from garbage collection.

Declaration

func JSValueUnprotect(_ ctx: JSContextRef!, _ value: JSValueRef!)

Parameters

  • ctx:

    The execution context to use.

  • value:

    The Jsvalueref to unprotect.

Discussion

You can protect a value multiple times and must unprotect it an equal number of times before it becomes eligible for garbage collection.

See Also

Supporting Garbage Collection