| 289 | } |
| 290 | |
| 291 | void URLImpl::GetOrigin(v8::Local<v8::String> property, |
| 292 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 293 | URLImpl *ptr = GetPointer(info.This()); |
| 294 | if (ptr == nullptr) { |
| 295 | info.GetReturnValue().SetEmptyString(); |
| 296 | return; |
| 297 | } |
| 298 | auto isolate = info.GetIsolate(); |
| 299 | |
| 300 | auto value = ptr->GetURL()->get_origin(); |
| 301 | |
| 302 | info.GetReturnValue().Set( |
| 303 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 304 | } |
| 305 | |
| 306 | void URLImpl::GetPassword(v8::Local<v8::String> property, |
| 307 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
nothing calls this directly
no test coverage detected