| 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 | } |
no test coverage detected