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

Method GetPort

test-app/runtime/src/main/cpp/URLPatternImpl.cpp:532–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530
531
532void URLPatternImpl::GetPort(v8::Local<v8::Name> property,
533 const v8::PropertyCallbackInfo<v8::Value> &info) {
534 URLPatternImpl *ptr = GetPointer(info.This());
535 if (ptr == nullptr) {
536 info.GetReturnValue().SetEmptyString();
537 return;
538 }
539 auto isolate = info.GetIsolate();
540
541 auto value = ptr->GetPattern()->get_port();
542
543 info.GetReturnValue().Set(
544 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
545}
546
547
548void URLPatternImpl::GetProtocol(v8::Local<v8::Name> property,

Callers

nothing calls this directly

Calls 9

ThisMethod · 0.80
SetEmptyStringMethod · 0.80
GetReturnValueMethod · 0.80
GetPatternMethod · 0.80
get_portMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected