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

Method SetPort

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

Source from the content-addressed store, hash-verified

375}
376
377void URLImpl::SetPort(v8::Local<v8::String> property,
378 v8::Local<v8::Value> value,
379 const v8::PropertyCallbackInfo<void> &info) {
380 URLImpl *ptr = GetPointer(info.This());
381 if (ptr == nullptr) {
382 return;
383 }
384 auto isolate = info.GetIsolate();
385 auto context = isolate->GetCurrentContext();
386 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
387 ptr->GetURL()->set_port(val.c_str());
388}
389
390void URLImpl::GetProtocol(v8::Local<v8::String> property,
391 const v8::PropertyCallbackInfo<v8::Value> &info) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected