| 276 | } |
| 277 | |
| 278 | void URLImpl::SetHref(v8::Local<v8::String> property, |
| 279 | v8::Local<v8::Value> value, |
| 280 | const v8::PropertyCallbackInfo<void> &info) { |
| 281 | URLImpl *ptr = GetPointer(info.This()); |
| 282 | if (ptr == nullptr) { |
| 283 | return; |
| 284 | } |
| 285 | auto isolate = info.GetIsolate(); |
| 286 | auto context = isolate->GetCurrentContext(); |
| 287 | auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked()); |
| 288 | ptr->GetURL()->set_href(val.c_str()); |
| 289 | } |
| 290 | |
| 291 | void URLImpl::GetOrigin(v8::Local<v8::String> property, |
| 292 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
nothing calls this directly
no test coverage detected