(buf)
| 6207 | } |
| 6208 | const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr; |
| 6209 | if (ret !== constants3.ERROR.OK) { |
| 6210 | const body = data.subarray(offset); |
| 6211 | if (ret === constants3.ERROR.PAUSED_UPGRADE) { |
| 6212 | this.onUpgrade(body); |
| 6213 | } else if (ret === constants3.ERROR.PAUSED) { |
| 6214 | this.paused = true; |
| 6215 | socket.unshift(body); |
| 6216 | } else { |
| 6217 | throw this.createError(ret, body); |
| 6218 | } |
| 6219 | } |
| 6220 | } catch (err) { |
no test coverage detected