| 191 | } |
| 192 | |
| 193 | void URLImpl::SetHash(v8::Local<v8::String> property, |
| 194 | v8::Local<v8::Value> value, |
| 195 | const v8::PropertyCallbackInfo<void> &info) { |
| 196 | URLImpl *ptr = GetPointer(info.This()); |
| 197 | if (ptr == nullptr) { |
| 198 | return; |
| 199 | } |
| 200 | auto isolate = info.GetIsolate(); |
| 201 | auto context = isolate->GetCurrentContext(); |
| 202 | auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked()); |
| 203 | ptr->GetURL()->set_hash(val.c_str()); |
| 204 | } |
| 205 | |
| 206 | |
| 207 | void URLImpl::GetHost(v8::Local<v8::String> property, |
nothing calls this directly
no test coverage detected