| 332 | } |
| 333 | |
| 334 | void URLImpl::GetPathName(v8::Local<v8::String> property, |
| 335 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 336 | URLImpl *ptr = GetPointer(info.This()); |
| 337 | if (ptr == nullptr) { |
| 338 | info.GetReturnValue().SetEmptyString(); |
| 339 | return; |
| 340 | } |
| 341 | auto isolate = info.GetIsolate(); |
| 342 | |
| 343 | auto value = ptr->GetURL()->get_pathname(); |
| 344 | |
| 345 | info.GetReturnValue().Set( |
| 346 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 347 | } |
| 348 | |
| 349 | void URLImpl::SetPathName(v8::Local<v8::String> property, |
| 350 | v8::Local<v8::Value> value, |
nothing calls this directly
no test coverage detected