MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fx_Reflect_getOwnPropertyDescriptor

Function fx_Reflect_getOwnPropertyDescriptor

xs/sources/xsProxy.c:918–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916}
917
918void fx_Reflect_getOwnPropertyDescriptor(txMachine* the)
919{
920 txSlot* at;
921 if ((mxArgc < 1) || (mxArgv(0)->kind != XS_REFERENCE_KIND))
922 mxTypeError("target: not an object");
923 if (mxArgc < 2)
924 mxTypeError("no key");
925 at = fxAt(the, mxArgv(1));
926 mxPushUndefined();
927 if (mxBehaviorGetOwnProperty(the, mxArgv(0)->value.reference, at->value.at.id, at->value.at.index, the->stack)) {
928 fxDescribeProperty(the, the->stack, XS_GET_ONLY);
929 mxPullSlot(mxResult);
930 }
931 mxPop();
932}
933
934void fx_Reflect_getPrototypeOf(txMachine* the)
935{

Callers

nothing calls this directly

Calls 2

fxAtFunction · 0.85
fxDescribePropertyFunction · 0.85

Tested by

no test coverage detected