| 304 | } |
| 305 | |
| 306 | void URLImpl::GetPassword(v8::Local<v8::String> property, |
| 307 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 308 | URLImpl *ptr = GetPointer(info.This()); |
| 309 | if (ptr == nullptr) { |
| 310 | info.GetReturnValue().SetEmptyString(); |
| 311 | return; |
| 312 | } |
| 313 | auto isolate = info.GetIsolate(); |
| 314 | |
| 315 | auto value = ptr->GetURL()->get_password(); |
| 316 | |
| 317 | info.GetReturnValue().Set( |
| 318 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 319 | } |
| 320 | |
| 321 | void URLImpl::SetPassword(v8::Local<v8::String> property, |
| 322 | v8::Local<v8::Value> value, |
nothing calls this directly
no test coverage detected