| 851 | if (read.count > MAX_TERMS_PER_READ) { |
| 852 | stopSequenceReads(); |
| 853 | return false; |
| 854 | } |
| 855 | stack.push(indices); |
| 856 | read.pending.add(indexKeyOf(indices)); |
| 857 | return true; |
| 858 | }; |
| 859 | if (!push(root)) return undefined; |
| 860 | while (stack.length > 0) { |
| 861 | checkDeadline(engine._deadlineFrame); |
| 862 | const indices = stack[stack.length - 1]; |
| 863 | const needed = |
| 864 | lowerTermToCompute(indices, read, engine, numericApproximation) ?? |
| 865 | computeOneTerm(indices, read, engine, numericApproximation); |
| 866 | if (sequenceReadsStopped) return undefined; |
| 867 | if (needed !== undefined) { |