| 446 | |
| 447 | |
| 448 | void URLImpl::GetUserName(v8::Local<v8::String> property, |
| 449 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 450 | URLImpl *ptr = GetPointer(info.This()); |
| 451 | if (ptr == nullptr) { |
| 452 | info.GetReturnValue().SetEmptyString(); |
| 453 | return; |
| 454 | } |
| 455 | auto isolate = info.GetIsolate(); |
| 456 | |
| 457 | auto value = ptr->GetURL()->get_username(); |
| 458 | |
| 459 | info.GetReturnValue().Set( |
| 460 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 461 | } |
| 462 | |
| 463 | void URLImpl::SetUserName(v8::Local<v8::String> property, |
| 464 | v8::Local<v8::Value> value, |
nothing calls this directly
no test coverage detected