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

Function newClassDefWithId

valdi/src/valdi/quickjs/QuickJSUtils.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 for (int i = 0; i < argc; i++) {
81 arguments[i] = Valdi::JSValueRef::makeUnretained(valdiJsContext, toValdiJSValue(argv[i]));
82 }
83
84 Valdi::JSExceptionTracker exceptionTracker(valdiJsContext);
85 Valdi::JSFunctionNativeCallContext callContext(
86 valdiJsContext, arguments, static_cast<size_t>(argc), exceptionTracker, functionData->referenceInfo);
87 callContext.setThisValue(toValdiJSValue(thisValue));
88
89 if (valdiJsContext.interruptRequested()) {
90 valdiJsContext.onInterrupt();
91 }
92
93 auto result = functionData->callback(functionData->nativeClass->getOpaque().get(), callContext);

Callers 3

Calls 1

newClassIDFunction · 0.70

Tested by

no test coverage detected