| 546 | |
| 547 | |
| 548 | void URLPatternImpl::GetProtocol(v8::Local<v8::Name> property, |
| 549 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 550 | URLPatternImpl *ptr = GetPointer(info.This()); |
| 551 | if (ptr == nullptr) { |
| 552 | info.GetReturnValue().SetEmptyString(); |
| 553 | return; |
| 554 | } |
| 555 | auto isolate = info.GetIsolate(); |
| 556 | |
| 557 | auto value = ptr->GetPattern()->get_protocol(); |
| 558 | |
| 559 | info.GetReturnValue().Set( |
| 560 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 561 | } |
| 562 | |
| 563 | |
| 564 | void URLPatternImpl::GetSearch(v8::Local<v8::Name> property, |
nothing calls this directly
no test coverage detected