| 388 | } |
| 389 | |
| 390 | void URLImpl::GetProtocol(v8::Local<v8::String> property, |
| 391 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 392 | URLImpl *ptr = GetPointer(info.This()); |
| 393 | if (ptr == nullptr) { |
| 394 | info.GetReturnValue().SetEmptyString(); |
| 395 | return; |
| 396 | } |
| 397 | auto isolate = info.GetIsolate(); |
| 398 | |
| 399 | auto value = ptr->GetURL()->get_protocol(); |
| 400 | |
| 401 | info.GetReturnValue().Set( |
| 402 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 403 | } |
| 404 | |
| 405 | void URLImpl::SetProtocol(v8::Local<v8::String> property, |
| 406 | v8::Local<v8::Value> value, |
nothing calls this directly
no test coverage detected