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

Method getObjectProperty

valdi/src/valdi/v8/V8JavaScriptContext.cpp:526–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524
525JSValueRef V8JavaScriptContext::newWeakRef(const JSValue& object, JSExceptionTracker& exceptionTracker) {
526 v8::HandleScope handleScope(_isolate);
527 auto indirect = fromValdiJSValueToIndirect(object);
528 return toUnretainedJSValueRef(indirect);
529}
530
531JSValueRef V8JavaScriptContext::derefWeakRef(const JSValue& weakRef, JSExceptionTracker& exceptionTracker) {
532 v8::HandleScope handleScope(_isolate);
533 auto indirect = fromValdiJSValueToIndirect(weakRef);
534 if (indirect.isEmpty()) {

Callers 1

mainFunction · 0.45

Calls 8

ToLocalMethod · 0.80
fromValdiJSValueFunction · 0.70
fromValdiJSPropertyNameFunction · 0.70
getMethod · 0.65
onErrorMethod · 0.65
CastFunction · 0.50
NewFunction · 0.50
GetMethod · 0.45

Tested by

no test coverage detected