| 375 | } |
| 376 | |
| 377 | void URLImpl::SetPort(v8::Local<v8::String> property, |
| 378 | v8::Local<v8::Value> value, |
| 379 | const v8::PropertyCallbackInfo<void> &info) { |
| 380 | URLImpl *ptr = GetPointer(info.This()); |
| 381 | if (ptr == nullptr) { |
| 382 | return; |
| 383 | } |
| 384 | auto isolate = info.GetIsolate(); |
| 385 | auto context = isolate->GetCurrentContext(); |
| 386 | auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked()); |
| 387 | ptr->GetURL()->set_port(val.c_str()); |
| 388 | } |
| 389 | |
| 390 | void URLImpl::GetProtocol(v8::Local<v8::String> property, |
| 391 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
nothing calls this directly
no test coverage detected