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 Valdi::JSExceptionTracker& exceptionTracker) {
329 auto guard = _threadAccessChecker.guard();
330 auto result = checkCallAndGetValue(
331 exceptionTracker,
332 JS_ReadObject(_context, reinterpret_cast<const uint8_t*>(script.data()), script.size(), JS_READ_OBJ_BYTECODE));
333
334 if (!exceptionTracker) {
335 return Valdi::JSValueRef();
336 }
337

Callers

nothing calls this directly

Calls 3

tsn_load_moduleFunction · 0.85
guardMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected