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

Method evaluate

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:321–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 auto jsModule = Valdi::makePreCompiledJsModule(reinterpret_cast<const Valdi::Byte*>(buffer), objectSize);
320
321 js_free(_context, buffer);
322
323 return jsModule;
324}
325
326Valdi::JSValueRef QuickJSJavaScriptContext::evaluatePreCompiled(const Valdi::BytesView& script,
327 const std::string_view& /*sourceFilename*/,
328 Valdi::JSExceptionTracker& exceptionTracker) {
329 auto guard = _threadAccessChecker.guard();
330 auto result = checkCallAndGetValue(
331 exceptionTracker,

Callers

nothing calls this directly

Calls 3

guardMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected