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 if (!exceptionTracker) {
329 return Valdi::JSValueRef();
330 }
331
332 auto retainedResult = JS_DupValue(_context, fromValdiJSValue(result.get()));
333
334 return checkCallAndGetValue(exceptionTracker, JS_EvalFunction(_context, retainedResult));
335}
336
337Valdi::JSValueRef QuickJSJavaScriptContext::evaluate(const std::string& script,

Callers

nothing calls this directly

Calls 3

tsn_load_moduleFunction · 0.85
guardMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected