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

Method valueToWrappedObject

valdi/src/valdi/jscore/JavaScriptCoreContext.cpp:582–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580 }
581
582 auto prototype = newObject(exceptionTracker);
583 if (!exceptionTracker) {
584 return Valdi::JSValueRef();
585 }
586 auto prototypeObject = fromValdiJSValue(prototype.get()).asObjectRefOrThrow(*this, exceptionTracker);
587 auto classObject = fromValdiJSValue(cls.get()).asObjectRefOrThrow(*this, exceptionTracker);
588 if (!exceptionTracker) {
589 return Valdi::JSValueRef();
590 }
591
592 auto defineDataProperty = [&](JSObjectRef object,

Callers

nothing calls this directly

Calls 4

getAttachedWrappedObjectFunction · 0.85
asObjectRefMethod · 0.80
fromValdiJSValueFunction · 0.70
RefInterface · 0.50

Tested by

no test coverage detected