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

Function getAttachedJsFunctionData

valdi/src/valdi/jscore/JSCoreCustomClasses.cpp:102–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102JSFunctionData* getAttachedJsFunctionData(JSObjectRef objectRef) {
103 return dynamic_cast<JSFunctionData*>(getAttachedRefCountable(objectRef));
104}
105
106Valdi::RefCountable* getAttachedWrappedObject(JSObjectRef objectRef) {
107 auto* refCountable = getAttachedRefCountable(objectRef);

Callers 2

callAsFunctionFunction · 0.85
valueToFunctionMethod · 0.85

Calls 1

getAttachedRefCountableFunction · 0.85

Tested by

no test coverage detected