| 347 | } |
| 348 | |
| 349 | void URLImpl::SetPathName(v8::Local<v8::String> property, |
| 350 | v8::Local<v8::Value> value, |
| 351 | const v8::PropertyCallbackInfo<void> &info) { |
| 352 | URLImpl *ptr = GetPointer(info.This()); |
| 353 | if (ptr == nullptr) { |
| 354 | return; |
| 355 | } |
| 356 | auto isolate = info.GetIsolate(); |
| 357 | auto context = isolate->GetCurrentContext(); |
| 358 | auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked()); |
| 359 | ptr->GetURL()->set_pathname(val.c_str()); |
| 360 | } |
| 361 | |
| 362 | void URLImpl::GetPort(v8::Local<v8::String> property, |
| 363 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
nothing calls this directly
no test coverage detected