| 205 | |
| 206 | |
| 207 | void URLImpl::GetHost(v8::Local<v8::String> property, |
| 208 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 209 | URLImpl *ptr = GetPointer(info.This()); |
| 210 | if (ptr == nullptr) { |
| 211 | info.GetReturnValue().SetEmptyString(); |
| 212 | return; |
| 213 | } |
| 214 | auto isolate = info.GetIsolate(); |
| 215 | |
| 216 | auto value = ptr->GetURL()->get_host(); |
| 217 | info.GetReturnValue().Set( |
| 218 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 219 | } |
| 220 | |
| 221 | void URLImpl::SetHost(v8::Local<v8::String> property, |
| 222 | v8::Local<v8::Value> value, |
nothing calls this directly
no test coverage detected