Skip to content

JsCollectGarbage

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Performs a full garbage collection.

Syntax

STDAPI_(JsErrorCode)
    JsCollectGarbage(
    _In_ JsRuntimeHandle runtime);

Parameters

  • runtime: The runtime in which the garbage collection will be performed.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Clone this wiki locally