| 177 | |
| 178 | |
| 179 | void URLImpl::GetHash(v8::Local<v8::String> property, |
| 180 | const v8::PropertyCallbackInfo<v8::Value> &info) { |
| 181 | URLImpl *ptr = GetPointer(info.This()); |
| 182 | if (ptr == nullptr) { |
| 183 | info.GetReturnValue().SetEmptyString(); |
| 184 | return; |
| 185 | } |
| 186 | auto isolate = info.GetIsolate(); |
| 187 | |
| 188 | auto value = ptr->GetURL()->get_hash(); |
| 189 | info.GetReturnValue().Set( |
| 190 | ArgConverter::ConvertToV8String(isolate, value.data(), value.length())); |
| 191 | } |
| 192 | |
| 193 | void URLImpl::SetHash(v8::Local<v8::String> property, |
| 194 | v8::Local<v8::Value> value, |
nothing calls this directly
no test coverage detected