Constructor

JavaScriptCoreWeakValuenew

Declaration [src]

JSCWeakValue*
jsc_weak_value_new (
  JSCValue* value
)

Description [src]

Create a new JSCWeakValue for the JavaScript value referenced by value.

Parameters

value JSCValue
 

A JSCValue.

 The data is owned by the caller of the function.

Return value

Returns: JSCWeakValue
 

A new JSCWeakValue.

 The caller of the function takes ownership of the data, and is responsible for freeing it.