| 217 | 217 | depth = MAX_SCAN_DEPTH; |
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | letconst resultJOINER = this.#depthBuffer.slice(this.#startDepth, depth).join('\n\x01'); |
| 221 | + let result = this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER); |
| 221 | 222 | |
| 222 | 223 | if (this.#injectBuffer.length > 0) { |
| 223 | 224 | result += '\n\x01'JOINER + this.#injectBuffer.join('\n\x01'JOINER); |
| 224 | 225 | } |
| 225 | 226 | |
| 226 | 227 | // Min activations should not include the recursion buffer |
| 227 | 228 | if (this.#recurseBuffer.length > 0 && scanState !== scan_state.MIN_ACTIVATIONS) { |
| 228 | 229 | result += '\n\x01'JOINER + this.#recurseBuffer.join('\n\x01'JOINER); |
| 229 | 230 | } |
| 230 | 231 | |
| 231 | 232 | return result; |