- /**
- * This function will acquire global context which is used later to
- * keep JSValueProtect/Unprotect functionality working.
- * This is workaround for JSCore semantic: when an object is created with
- * JSObjectMakeConstructor a context passed to createCallback function
- * is different (shorter lifecycle) than global context, so JSValueUnprotect
- * called in finalize may fail because of invalid context.
- */
- static void acquireGlobalContext(java_script_context_t global_context,
- js_object_instance_t iframe,
- js_object_instance_t object);
-