(cursor, fiber)
| 12447 | } |
| 12448 | |
| 12449 | function pop(cursor, fiber) { |
| 12450 | if (index < 0) { |
| 12451 | { |
| 12452 | warning(false, 'Unexpected pop.'); |
| 12453 | } |
| 12454 | return; |
| 12455 | } |
| 12456 | |
| 12457 | { |
| 12458 | if (fiber !== fiberStack[index]) { |
| 12459 | warning(false, 'Unexpected Fiber popped.'); |
| 12460 | } |
| 12461 | } |
| 12462 | |
| 12463 | cursor.current = valueStack[index]; |
| 12464 | |
| 12465 | valueStack[index] = null; |
| 12466 | |
| 12467 | { |
| 12468 | fiberStack[index] = null; |
| 12469 | } |
| 12470 | |
| 12471 | index--; |
| 12472 | } |
| 12473 | |
| 12474 | function push(cursor, value, fiber) { |
| 12475 | index++; |
no test coverage detected