| 247 | } |
| 248 | |
| 249 | void URLImpl::SetHostName(v8::Local<v8::String> property, |
| 250 | v8::Local<v8::Value> value, |
| 251 | const v8::PropertyCallbackInfo<void> &info) { |
| 252 | URLImpl *ptr = GetPointer(info.This()); |
| 253 | if (ptr == nullptr) { |
| 254 | return; |
| 255 | } |
| 256 | auto isolate = info.GetIsolate(); |
| 257 | auto context = isolate->GetCurrentContext(); |
| 258 | auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked()); |
| 259 | ptr->GetURL()->set_hostname(val.c_str()); |
| 260 | } |
| 261 | |
| 262 | |
| 263 | void URLImpl::GetHref(v8::Local<v8::String> property, |
nothing calls this directly
no test coverage detected