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

Method SetHref

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

Source from the content-addressed store, hash-verified

276}
277
278void URLImpl::SetHref(v8::Local<v8::String> property,
279 v8::Local<v8::Value> value,
280 const v8::PropertyCallbackInfo<void> &info) {
281 URLImpl *ptr = GetPointer(info.This());
282 if (ptr == nullptr) {
283 return;
284 }
285 auto isolate = info.GetIsolate();
286 auto context = isolate->GetCurrentContext();
287 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
288 ptr->GetURL()->set_href(val.c_str());
289}
290
291void URLImpl::GetOrigin(v8::Local<v8::String> property,
292 const v8::PropertyCallbackInfo<v8::Value> &info) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected