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

Method getObjectProperty

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:604–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602 case Valdi::ArrayBuffer:
603 return Valdi::JSValueRef::makeRetained(*this, arrayBuffer);
604 }
605}
606
607Valdi::JSValueRef QuickJSJavaScriptContext::newWrappedObject(const Valdi::Ref<Valdi::RefCountable>& wrappedObject,
608 Valdi::JSExceptionTracker& exceptionTracker) {
609 auto guard = _threadAccessChecker.guard();
610 auto jsWrappedObject = checkCallAndGetValue(
611 exceptionTracker, JS_NewObjectProtoClass(_context, _objectPrototype, _wrappedObjectClassID));
612 if (!exceptionTracker) {
613 return Valdi::JSValueRef();

Callers

nothing calls this directly

Calls 5

JS_GetPropertyFunction · 0.85
guardMethod · 0.80
fromValdiJSValueFunction · 0.70
fromValdiJSPropertyNameFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected