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

Method isValueObject

valdi/src/valdi/v8/V8JavaScriptContext.cpp:1062–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1060 }
1061 if (val->IsArray()) {
1062 return ValueType::Array;
1063 }
1064 if (val->IsObject() && classID == kWrappedObjectID) {
1065 return ValueType::ValdiObject;
1066 }
1067 if (val->IsFunction()) {
1068 return ValueType::Function;
1069 }
1070 if (val->IsTypedArray() || val->IsArrayBuffer() || val->IsArrayBufferView()) {
1071 return ValueType::TypedArray;
1072 }
1073 if (val->IsNativeError()) { // TODO(rjaber): Check that native error is semantically the as other VMs
1074 return ValueType::Error;
1075 }

Callers 2

getFromJSPromiseMethod · 0.45
doOnCompleteMethod · 0.45

Calls 2

clearErrorMethod · 0.80
fromValdiJSValueFunction · 0.70

Tested by

no test coverage detected