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

Function setObjectWrappedObject

valdi/src/valdi/quickjs/QuickJSUtils.cpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 return object;
134 }
135 callContext.setThisValue(toValdiJSValue(object));
136
137 if (valdiJsContext.interruptRequested()) {
138 valdiJsContext.onInterrupt();
139 }
140
141 auto nativeOpaque = constructor(nativeClass->getOpaque().get(), callContext);
142 if (exceptionTracker && nativeOpaque == nullptr) {
143 exceptionTracker.onError("Native class constructor returned a null opaque object");
144 }
145

Callers 2

newWrappedObjectMethod · 0.85
jsWrappedObjectFinalizeFunction · 0.85

Calls 4

getWrappedObjectClassDefFunction · 0.85
releaseFunction · 0.85
unsafeBridgeRetainFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected