| 916 | } |
| 917 | |
| 918 | void 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 | |
| 934 | void fx_Reflect_getPrototypeOf(txMachine* the) |
| 935 | { |
nothing calls this directly
no test coverage detected