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

Method GetProtocol

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

Source from the content-addressed store, hash-verified

546
547
548void URLPatternImpl::GetProtocol(v8::Local<v8::Name> property,
549 const v8::PropertyCallbackInfo<v8::Value> &info) {
550 URLPatternImpl *ptr = GetPointer(info.This());
551 if (ptr == nullptr) {
552 info.GetReturnValue().SetEmptyString();
553 return;
554 }
555 auto isolate = info.GetIsolate();
556
557 auto value = ptr->GetPattern()->get_protocol();
558
559 info.GetReturnValue().Set(
560 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
561}
562
563
564void URLPatternImpl::GetSearch(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_protocolMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected