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

Method GetHref

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

Source from the content-addressed store, hash-verified

261
262
263void URLImpl::GetHref(v8::Local<v8::String> property,
264 const v8::PropertyCallbackInfo<v8::Value> &info) {
265 URLImpl *ptr = GetPointer(info.This());
266 if (ptr == nullptr) {
267 info.GetReturnValue().SetEmptyString();
268 return;
269 }
270 auto isolate = info.GetIsolate();
271
272 auto value = ptr->GetURL()->get_href();
273
274 info.GetReturnValue().Set(
275 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
276}
277
278void URLImpl::SetHref(v8::Local<v8::String> property,
279 v8::Local<v8::Value> value,

Callers

nothing calls this directly

Calls 9

ThisMethod · 0.80
SetEmptyStringMethod · 0.80
GetReturnValueMethod · 0.80
get_hrefMethod · 0.80
GetURLMethod · 0.80
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected