unprotect method

void unprotect()

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.

Implementation

void unprotect() {
  JSValueUnprotect(context.ref, _ref);
}