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

Method toJSValueRef

valdi/src/valdi/hermes/HermesJavaScriptContext.cpp:1315–1327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1313 }
1314
1315 return ValueType::Map;
1316 }
1317
1318 return ValueType::Undefined;
1319}
1320
1321bool HermesJavaScriptContext::isValueUndefined(const JSValue& value) {
1322 return toHermesValue(value).isUndefined();
1323}
1324
1325bool HermesJavaScriptContext::isValueNull(const JSValue& value) {
1326 return toHermesValue(value).isNull();
1327}
1328
1329bool HermesJavaScriptContext::isValueFunction(const JSValue& value) {
1330 const auto* hermesValue = toPinnedHermesValue(value);

Callers 1

callTrampolineFunction · 0.80

Calls 7

isBoolMethod · 0.80
getNumberMethod · 0.80
isUndefinedMethod · 0.45
isEmptyMethod · 0.45
isNullMethod · 0.45
getBoolMethod · 0.45
isNumberMethod · 0.45

Tested by

no test coverage detected