webDebugClear function
void
webDebugClear()
Clear all debug objects from window.hiveDebug. Safe to call even if already empty.
Implementation
void webDebugClear() {
if (_hiveDebug == null) return;
try {
// Reset to empty object
_globalThis.setProperty('hiveDebug'.toJS, _newObject());
_hiveDebug = _globalThis.getProperty('hiveDebug'.toJS) as JSObject;
} catch (_) {
// Ignore errors
}
_keyOrder.clear();
}