| 475 | |
| 476 | |
| 477 | void URLImpl::ToString(const v8::FunctionCallbackInfo<v8::Value> &info) { |
| 478 | URLImpl *ptr = GetPointer(info.This()); |
| 479 | if (ptr == nullptr) { |
| 480 | info.GetReturnValue().SetEmptyString(); |
| 481 | return; |
| 482 | } |
| 483 | auto isolate = info.GetIsolate(); |
| 484 | |
| 485 | |
| 486 | auto value = ptr->GetURL()->get_href(); |
| 487 | |
| 488 | auto ret = ArgConverter::ConvertToV8String(isolate, value.data(), value.length()); |
| 489 | |
| 490 | info.GetReturnValue().Set(ret); |
| 491 | } |
| 492 | |
| 493 | |
| 494 | void URLImpl::CanParse(const v8::FunctionCallbackInfo<v8::Value> &info) { |
no test coverage detected