(isNegative, integer, chunk)
| 361 | } |
| 362 | |
| 363 | #decodeDoubleInteger(isNegative, integer, chunk) { |
| 364 | if (chunk[this.#cursor] === ASCII.i) { |
| 365 | this.#cursor += 5; // skip inf\r\n |
| 366 | return isNegative ? -Infinity : Infinity; |
| 367 | } |
| 368 | |
| 369 | return this.#continueDecodeDoubleInteger(isNegative, integer, chunk); |
| 370 | } |
| 371 | |
| 372 | #continueDecodeDoubleInteger(isNegative, integer, chunk) { |
| 373 | let cursor = this.#cursor; |
no test coverage detected