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

Method appendRejectedPromise

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:1272–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1270 auto guard = _threadAccessChecker.guard();
1271 auto jsValue = fromValdiJSValue(value);
1272 return JS_IsObject(jsValue) != 0;
1273}
1274
1275inline Valdi::JSValueRef QuickJSJavaScriptContext::toRetainedJSValueRef(const JSValue& value) {
1276 return Valdi::JSValueRef(this, toValdiJSValue(value), true);
1277}
1278
1279inline Valdi::JSValueRef QuickJSJavaScriptContext::toUnretainedJSValueRef(const JSValue& value) {

Callers 1

handleRejectedPromiseFunction · 0.80

Calls 1

JS_DupValueFunction · 0.85

Tested by

no test coverage detected