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

Method GetOrigin

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

Source from the content-addressed store, hash-verified

289}
290
291void URLImpl::GetOrigin(v8::Local<v8::String> property,
292 const v8::PropertyCallbackInfo<v8::Value> &info) {
293 URLImpl *ptr = GetPointer(info.This());
294 if (ptr == nullptr) {
295 info.GetReturnValue().SetEmptyString();
296 return;
297 }
298 auto isolate = info.GetIsolate();
299
300 auto value = ptr->GetURL()->get_origin();
301
302 info.GetReturnValue().Set(
303 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
304}
305
306void URLImpl::GetPassword(v8::Local<v8::String> property,
307 const v8::PropertyCallbackInfo<v8::Value> &info) {

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected