| 458 | } |
| 459 | |
| 460 | txSlot* fxNewCombinePromisesFunction(txMachine* the, txInteger which, txSlot* already, txSlot* object) |
| 461 | { |
| 462 | txSlot* result; |
| 463 | txSlot* instance; |
| 464 | txSlot* property; |
| 465 | result = fxNewHostFunction(the, fxCombinePromisesCallback, 1, XS_NO_ID, mxCombinePromisesCallbackProfileID); |
| 466 | instance = fxNewInstance(the); |
| 467 | property = fxNextIntegerProperty(the, instance, which, XS_NO_ID, XS_NO_FLAG); |
| 468 | property = property->next = fxNewSlot(the); |
| 469 | property->kind = XS_CLOSURE_KIND; |
| 470 | property->value.closure = already; |
| 471 | property = fxNextReferenceProperty(the, property, object, XS_NO_ID, XS_NO_FLAG); |
| 472 | property = mxFunctionInstanceHome(result); |
| 473 | property->value.home.object = instance; |
| 474 | mxPop(); |
| 475 | return result; |
| 476 | } |
| 477 | |
| 478 | void fxOnRejectedPromise(txMachine* the) |
| 479 | { |
no test coverage detected