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::ValueType::Undefined;
1178 }
1179 if (!getLongConstructor().empty() &&
1180 JS_IsInstanceOf(_context, jsValue, fromValdiJSValue(getLongConstructor().get())) != 0) {
1181 return Valdi::ValueType::Long;
1182 }
1183
1184 // Regular object
1185 return Valdi::ValueType::Map;
1186}
1187
1188bool QuickJSJavaScriptContext::isValueUndefined(const Valdi::JSValue& value) {
1189 auto guard = _threadAccessChecker.guard();

Callers

nothing calls this directly

Calls 2

getHeapDumpBuilderFunction · 0.85
appendEdgeMethod · 0.80

Tested by

no test coverage detected