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

Function makeWeakRefFinalizerClassDef

valdi/src/valdi/quickjs/QuickJSUtils.cpp:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 Valdi::JSExceptionTracker exceptionTracker(valdiJsContext);
122 const auto& referenceInfo = nativeClass->getConstructorReferenceInfo();
123 Valdi::JSFunctionNativeCallContext callContext(
124 valdiJsContext, arguments, static_cast<size_t>(argc), exceptionTracker, referenceInfo);
125
126 auto prototype = JS_GetPropertyStr(context, funcObject, "prototype");
127 if (JS_IsException(prototype)) {
128 return prototype;
129 }
130 auto object = JS_NewObjectProtoClass(context, prototype, getWrappedObjectClassDef()->classID);

Callers 1

Calls 1

newClassDefWithIdFunction · 0.85

Tested by

no test coverage detected