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

Function onObjectEdge

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:1179–1186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1177 return Valdi::JSTypedArray(type, ptr, static_cast<size_t>(bytesLength), std::move(arrayBuffer));
1178 }
1179}
1180
1181Valdi::ValueType QuickJSJavaScriptContext::getValueType(const Valdi::JSValue& value) {
1182 auto guard = _threadAccessChecker.guard();
1183 auto jsValue = fromValdiJSValue(value);
1184
1185 if (JS_IsUndefined(jsValue) != 0) {
1186 return Valdi::ValueType::Undefined;
1187 }
1188 if (JS_IsNull(jsValue) != 0) {
1189 return Valdi::ValueType::Null;

Callers

nothing calls this directly

Calls 2

getHeapDumpBuilderFunction · 0.85
appendEdgeMethod · 0.80

Tested by

no test coverage detected