UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

11 lines (9 loc) 287 B
import { getGlobal } from "../runtime/get-global.js"; import type { IManagedResourceNode } from "../lifecycle/manged-resources.js"; /** * @public */ export function Test_resetLifeCycle(): void { (getGlobal()["RC_ALLOCATION_STACK"] as IManagedResourceNode[][] ?? []).length = 0; }