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

Function JS_FreeValue

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

Source from the content-addressed store, hash-verified

622
623void __JS_FreeValue(JSContext* ctx, JSValue v);
624static inline void JS_FreeValue(JSContext* ctx, JSValue v) {
625 if (JS_VALUE_HAS_REF_COUNT(v)) {
626 JSRefCountHeader* p = (JSRefCountHeader*)JS_VALUE_GET_PTR(v);
627 if (--p->ref_count <= 0) {
628 __JS_FreeValue(ctx, v);
629 }
630 }
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)) {

Callers 15

releaseValueMethod · 0.85
removeRejectedPromiseMethod · 0.85
mainFunction · 0.85
~ValueRefMethod · 0.85
ValueRefClass · 0.85
tsn_printFunction · 0.85
tsn_requireFunction · 0.85
tsn_debugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected