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

Method evaluateNative

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:330–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330Valdi::JSValueRef QuickJSJavaScriptContext::evaluateNative(const std::string_view& sourceFilename,
331 Valdi::JSExceptionTracker& exceptionTracker) {
332 auto guard = _threadAccessChecker.guard();
333 return checkCallAndGetValue(exceptionTracker, tsn_load_module(_context, sourceFilename.data()));
334}
335
336std::optional<Valdi::IJavaScriptNativeModuleInfo> QuickJSJavaScriptContext::getNativeModuleInfo(
337 const std::string_view& sourceFilename) {

Callers

nothing calls this directly

Calls 3

tsn_load_moduleFunction · 0.85
guardMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected