| 894 | } |
| 895 | |
| 896 | void fx_Promise_resolve(txMachine* the) |
| 897 | { |
| 898 | if (!mxIsReference(mxThis)) |
| 899 | mxTypeError("this: not an object"); |
| 900 | mxPushUndefined(); |
| 901 | mxPushSlot(mxThis); |
| 902 | if (mxArgc > 0) |
| 903 | mxPushSlot(mxArgv(0)); |
| 904 | else |
| 905 | mxPushUndefined(); |
| 906 | fx_Promise_resolveAux(the); |
| 907 | mxPop(); |
| 908 | mxPop(); |
| 909 | mxPullSlot(mxResult); |
| 910 | } |
| 911 | |
| 912 | void fx_Promise_resolveAux(txMachine* the) |
| 913 | { |
nothing calls this directly
no test coverage detected