MCPcopy Create free account
hub / github.com/NativeScript/android / GetHost

Method GetHost

test-app/runtime/src/main/cpp/URLImpl.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206
207void URLImpl::GetHost(v8::Local<v8::String> property,
208 const v8::PropertyCallbackInfo<v8::Value> &info) {
209 URLImpl *ptr = GetPointer(info.This());
210 if (ptr == nullptr) {
211 info.GetReturnValue().SetEmptyString();
212 return;
213 }
214 auto isolate = info.GetIsolate();
215
216 auto value = ptr->GetURL()->get_host();
217 info.GetReturnValue().Set(
218 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
219}
220
221void URLImpl::SetHost(v8::Local<v8::String> property,
222 v8::Local<v8::Value> value,

Callers

nothing calls this directly

Calls 9

ThisMethod · 0.80
SetEmptyStringMethod · 0.80
GetReturnValueMethod · 0.80
get_hostMethod · 0.80
GetURLMethod · 0.80
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected