| 1015 | return val->IsNull(); |
| 1016 | } |
| 1017 | bool V8JavaScriptContext::isValueFunction(const JSValue& value) { |
| 1018 | v8::HandleScope handleScope(_isolate); |
| 1019 | JSExceptionTracker tracker(*this); |
| 1020 | |
| 1021 | auto val = fromValdiJSValue(_isolate, value, tracker); |
| 1022 | if (!tracker) { |
| 1023 | tracker.clearError(); |
| 1024 | return false; |
| 1025 | } |
| 1026 | return val->IsFunction(); |
| 1027 | } |
| 1028 | |
| 1029 | bool V8JavaScriptContext::isValueNumber(const JSValue& value) { |
| 1030 | v8::HandleScope handleScope(_isolate); |
no test coverage detected