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

Method SetPathName

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

Source from the content-addressed store, hash-verified

347}
348
349void URLImpl::SetPathName(v8::Local<v8::String> property,
350 v8::Local<v8::Value> value,
351 const v8::PropertyCallbackInfo<void> &info) {
352 URLImpl *ptr = GetPointer(info.This());
353 if (ptr == nullptr) {
354 return;
355 }
356 auto isolate = info.GetIsolate();
357 auto context = isolate->GetCurrentContext();
358 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
359 ptr->GetURL()->set_pathname(val.c_str());
360}
361
362void URLImpl::GetPort(v8::Local<v8::String> property,
363 const v8::PropertyCallbackInfo<v8::Value> &info) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected