| 498 | |
| 499 | |
| 500 | void URLPatternImpl::GetPassword(v8::Local<v8::Name> property, |
| 501 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 502 | URLPatternImpl *ptr = GetPointer(info.This()); |
| 503 | if (ptr == nullptr) { |
| 504 | info.GetReturnValue().SetEmptyString(); |
| 505 | return; |
| 506 | } |
| 507 | auto isolate = info.GetIsolate(); |
| 508 | |
| 509 | auto value = ptr->GetPattern()->get_password(); |
| 510 | |
| 511 | info.GetReturnValue().Set( |
| 512 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 513 | } |
| 514 | |
| 515 | |
| 516 | void URLPatternImpl::GetPathName(v8::Local<v8::Name> property, |
nothing calls this directly
no test coverage detected