| 461 | } |
| 462 | |
| 463 | void URLImpl::SetUserName(v8::Local<v8::String> property, |
| 464 | v8::Local<v8::Value> value, |
| 465 | const v8::PropertyCallbackInfo<void> &info) { |
| 466 | URLImpl *ptr = GetPointer(info.This()); |
| 467 | if (ptr == nullptr) { |
| 468 | return; |
| 469 | } |
| 470 | auto isolate = info.GetIsolate(); |
| 471 | auto context = isolate->GetCurrentContext(); |
| 472 | auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked()); |
| 473 | ptr->GetURL()->set_username(val.c_str()); |
| 474 | } |
| 475 | |
| 476 | |
| 477 | void URLImpl::ToString(const v8::FunctionCallbackInfo<v8::Value> &info) { |
nothing calls this directly
no test coverage detected