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

Method SetHostName

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

Source from the content-addressed store, hash-verified

247}
248
249void URLImpl::SetHostName(v8::Local<v8::String> property,
250 v8::Local<v8::Value> value,
251 const v8::PropertyCallbackInfo<void> &info) {
252 URLImpl *ptr = GetPointer(info.This());
253 if (ptr == nullptr) {
254 return;
255 }
256 auto isolate = info.GetIsolate();
257 auto context = isolate->GetCurrentContext();
258 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
259 ptr->GetURL()->set_hostname(val.c_str());
260}
261
262
263void URLImpl::GetHref(v8::Local<v8::String> property,

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected