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

Function getObjectCallable

valdi/src/valdi/quickjs/QuickJSUtils.hpp:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 return reinterpret_cast<QuickJSJavaScriptContext*>(JS_GetRuntimeOpaque(JS_GetRuntime(context)));
67}
68
69inline QuickJSJavaScriptContext* getValdiJSContext(JSRuntime* rt) {
70 return reinterpret_cast<QuickJSJavaScriptContext*>(JS_GetRuntimeOpaque(rt));
71}
72
73inline void setObjectCallable(const JSValue& value, const Valdi::Ref<Valdi::JSFunction>& callable) {
74 auto* opaque = JS_GetOpaque(value, getBridgedFunctionClassDef()->classID);
75 if (opaque != nullptr) {

Callers 2

valueToFunctionMethod · 0.85
jsCallFunction · 0.85

Calls 1

Tested by

no test coverage detected