| 233 | |
| 234 | |
| 235 | void URLImpl::GetHostName(v8::Local<v8::String> property, |
| 236 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 237 | URLImpl *ptr = GetPointer(info.This()); |
| 238 | if (ptr == nullptr) { |
| 239 | info.GetReturnValue().SetEmptyString(); |
| 240 | return; |
| 241 | } |
| 242 | auto isolate = info.GetIsolate(); |
| 243 | auto value = ptr->GetURL()->get_hostname(); |
| 244 | |
| 245 | info.GetReturnValue().Set( |
| 246 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 247 | } |
| 248 | |
| 249 | void URLImpl::SetHostName(v8::Local<v8::String> property, |
| 250 | v8::Local<v8::Value> value, |
nothing calls this directly
no test coverage detected