| 276 | } |
| 277 | |
| 278 | void fxIteratorReturn(txMachine* the, txSlot* iterator, txBoolean abrupt) |
| 279 | { |
| 280 | if (abrupt) |
| 281 | mxPush(mxException); |
| 282 | mxTry(the) { |
| 283 | mxPushSlot(iterator); |
| 284 | mxDub(); |
| 285 | mxGetID(mxID(_return)); |
| 286 | if (mxIsUndefined(the->stack) || mxIsNull(the->stack)) |
| 287 | mxPop(); |
| 288 | else { |
| 289 | mxCall(); |
| 290 | mxRunCount(0); |
| 291 | if (!mxIsReference(the->stack)) |
| 292 | mxTypeError("iterator result: not an object"); |
| 293 | } |
| 294 | mxPop(); |
| 295 | } |
| 296 | mxCatch(the) { |
| 297 | if (!abrupt) |
| 298 | fxJump(the); |
| 299 | } |
| 300 | if (abrupt) |
| 301 | mxPull(mxException); |
| 302 | } |
| 303 | |
| 304 | txBoolean fxGetIterator(txMachine* the, txSlot* iterable, txSlot* iterator, txSlot* next, txBoolean optional) |
| 305 | { |
no test coverage detected