| 469 | } |
| 470 | |
| 471 | void URLPatternImpl::GetHash(v8::Local<v8::Name> property, |
| 472 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 473 | URLPatternImpl *ptr = GetPointer(info.This()); |
| 474 | if (ptr == nullptr) { |
| 475 | info.GetReturnValue().SetEmptyString(); |
| 476 | return; |
| 477 | } |
| 478 | auto isolate = info.GetIsolate(); |
| 479 | |
| 480 | auto value = ptr->GetPattern()->get_hash(); |
| 481 | info.GetReturnValue().Set( |
| 482 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 483 | } |
| 484 | |
| 485 | void URLPatternImpl::GetHostName(v8::Local<v8::Name> property, |
| 486 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
nothing calls this directly
no test coverage detected