| 514 | |
| 515 | |
| 516 | void URLPatternImpl::GetPathName(v8::Local<v8::Name> property, |
| 517 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 518 | URLPatternImpl *ptr = GetPointer(info.This()); |
| 519 | if (ptr == nullptr) { |
| 520 | info.GetReturnValue().SetEmptyString(); |
| 521 | return; |
| 522 | } |
| 523 | auto isolate = info.GetIsolate(); |
| 524 | |
| 525 | auto value = ptr->GetPattern()->get_pathname(); |
| 526 | |
| 527 | info.GetReturnValue().Set( |
| 528 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 529 | } |
| 530 | |
| 531 | |
| 532 | void URLPatternImpl::GetPort(v8::Local<v8::Name> property, |
nothing calls this directly
no test coverage detected