| 1048 | |
| 1049 | bool JavaScriptCoreContext::isValueEqual(const Valdi::JSValue& left, const Valdi::JSValue& right) { |
| 1050 | return fromValdiJSValue(left).asObjectRef() == fromValdiJSValue(right).asObjectRef(); |
| 1051 | } |
| 1052 | |
| 1053 | Valdi::ValueType JavaScriptCoreContext::getValueType(const Valdi::JSValue& value) { |
| 1054 | auto contextRef = getJSGlobalContext(); |
| 1055 | auto jsCoreValue = fromValdiJSValue(value); |
| 1056 | switch (jsCoreValue.type) { |
| 1057 | case kJSTypeUndefined: |
| 1058 | return Valdi::ValueType::Undefined; |
| 1059 | case kJSTypeNull: |
| 1060 | return Valdi::ValueType::Null; |
| 1061 | case kJSTypeBoolean: |
nothing calls this directly
no test coverage detected