| 403 | } |
| 404 | |
| 405 | void URLImpl::SetProtocol(v8::Local<v8::String> property, |
| 406 | v8::Local<v8::Value> value, |
| 407 | const v8::PropertyCallbackInfo<void> &info) { |
| 408 | URLImpl *ptr = GetPointer(info.This()); |
| 409 | if (ptr == nullptr) { |
| 410 | return; |
| 411 | } |
| 412 | auto isolate = info.GetIsolate(); |
| 413 | auto context = isolate->GetCurrentContext(); |
| 414 | auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked()); |
| 415 | ptr->GetURL()->set_protocol(val.c_str()); |
| 416 | } |
| 417 | |
| 418 | |
| 419 | void URLImpl::GetSearch(v8::Local<v8::String> property, |
nothing calls this directly
no test coverage detected