| 499 | } |
| 500 | |
| 501 | txSlot* fxCreateArray(txMachine* the, txFlag flag, txIndex length) |
| 502 | { |
| 503 | if (mxIsReference(mxThis) && mxIsConstructor(mxThis->value.reference)) |
| 504 | mxPushSlot(mxThis); |
| 505 | else |
| 506 | mxPush(mxArrayConstructor); |
| 507 | mxNew(); |
| 508 | if (flag) { |
| 509 | mxPushUnsigned(length); |
| 510 | mxRunCount(1); |
| 511 | } |
| 512 | else |
| 513 | mxRunCount(0); |
| 514 | mxPullSlot(mxResult); |
| 515 | return fxCheckArray(the, mxResult, XS_MUTABLE); |
| 516 | } |
| 517 | |
| 518 | txSlot* fxCreateArraySpecies(txMachine* the, txNumber length) |
| 519 | { |
no test coverage detected