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

Method SetHost

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

Source from the content-addressed store, hash-verified

219}
220
221void URLImpl::SetHost(v8::Local<v8::String> property,
222 v8::Local<v8::Value> value,
223 const v8::PropertyCallbackInfo<void> &info) {
224 URLImpl *ptr = GetPointer(info.This());
225 if (ptr == nullptr) {
226 return;
227 }
228 auto isolate = info.GetIsolate();
229 auto context = isolate->GetCurrentContext();
230 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
231 ptr->GetURL()->set_host(val.c_str());
232}
233
234
235void URLImpl::GetHostName(v8::Local<v8::String> property,

Callers

nothing calls this directly

Calls 6

ThisMethod · 0.80
ToLocalCheckedMethod · 0.80
set_hostMethod · 0.80
GetURLMethod · 0.80
GetIsolateMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected