| 219 | } |
| 220 | |
| 221 | void URLImpl::SetHost(v8::Local<v8::String> property, |
| 222 | v8::Local<v8::Value> value, |
| 223 | const v8::PropertyCallbackInfo<void> &info) { |
| 224 | URLImpl *ptr = GetPointer(info.This()); |
| 225 | if (ptr == nullptr) { |
| 226 | return; |
| 227 | } |
| 228 | auto isolate = info.GetIsolate(); |
| 229 | auto context = isolate->GetCurrentContext(); |
| 230 | auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked()); |
| 231 | ptr->GetURL()->set_host(val.c_str()); |
| 232 | } |
| 233 | |
| 234 | |
| 235 | void URLImpl::GetHostName(v8::Local<v8::String> property, |
nothing calls this directly
no test coverage detected