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

Method getWithWrapperID

valdi/src/valdi/v8/IndirectV8Persistent.cpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165std::pair<v8::Local<v8::Value>, uint16_t> IndirectV8Persistent::getWithWrapperID(v8::Isolate* isolate) const {
166 if (isEmpty()) {
167 return std::make_pair(v8::Local<v8::Value>(), kNoWrapperID);
168 }
169
170 return IndirectV8PersistentTable::get().newLocalRef(isolate, _id);
171}
172
173v8::Local<v8::Value> IndirectV8Persistent::get(v8::Isolate* isolate) const {
174 if (isEmpty()) {

Callers 2

valueToWrappedObjectMethod · 0.80
getValueTypeMethod · 0.80

Calls 3

isEmptyFunction · 0.85
getFunction · 0.50
newLocalRefMethod · 0.45

Tested by

no test coverage detected