| Top |  |  |  |  | 
JSCWeakValue represents a weak reference to a value in a JSCContext. It can be used to keep a reference to a JavaScript value without protecting it from being garbage collected and without referencing the JSCContext either.
JSCWeakValue *
jsc_weak_value_new (JSCValue *value);
Create a new JSCWeakValue for the JavaScript value referenced by value
.
JSCValue *
jsc_weak_value_get_value (JSCWeakValue *weak_value);
Get a JSCValue referencing the JavaScript value of weak_value
.
“cleared” signalvoid user_function (JSCWeakValue *weak_value, gpointer user_data)
This signal is emitted when the JavaScript value is destroyed.
| weak_value | the JSCWeakValue | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last