Skip to content

JsWeakRef

Limin Zhu edited this page May 16, 2017 · 1 revision

A weak reference to a JavaScript value.

Syntax

typedef JsRef JsWeakRef;

Remarks

This API is experimental and may have breaking change later.

A value with only weak references is available for garbage-collection. A strong reference to the value (JsValueRef) may be obtained from a weak reference if the value happens to still be available.

Clone this wiki locally