MCPcopy Create free account
hub / github.com/Snapchat/Valdi / JS_FreeValueRT

Function JS_FreeValueRT

third-party/quickjs/include/quickjs/quickjs.h:633–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632void __JS_FreeValueRT(JSRuntime* rt, JSValue v);
633static inline void JS_FreeValueRT(JSRuntime* rt, JSValue v) {
634 if (JS_VALUE_HAS_REF_COUNT(v)) {
635 JSRefCountHeader* p = (JSRefCountHeader*)JS_VALUE_GET_PTR(v);
636 if (--p->ref_count <= 0) {
637 __JS_FreeValueRT(rt, v);
638 }
639 }
640}
641
642static inline JSValue JS_DupValue(JSContext* ctx, JSValueConst v) {
643 if (JS_VALUE_HAS_REF_COUNT(v)) {

Callers 3

__tsn_module_finalizeFunction · 0.85
__tsn_deallocate_closureFunction · 0.85
tsn_free_module_rtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected