| 417 | |
| 418 | |
| 419 | void URLImpl::GetSearch(v8::Local<v8::String> property, |
| 420 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 421 | URLImpl *ptr = GetPointer(info.This()); |
| 422 | if (ptr == nullptr) { |
| 423 | info.GetReturnValue().SetEmptyString(); |
| 424 | return; |
| 425 | } |
| 426 | auto isolate = info.GetIsolate(); |
| 427 | |
| 428 | auto value = ptr->GetURL()->get_search(); |
| 429 | |
| 430 | info.GetReturnValue().Set( |
| 431 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 432 | } |
| 433 | |
| 434 | void URLImpl::SetSearch(v8::Local<v8::String> property, |
| 435 | v8::Local<v8::Value> value, |
nothing calls this directly
no test coverage detected