Fix documentation of onerror callback.

This commit is contained in:
Juliusz Chroboczek
2021-07-30 17:40:15 +02:00
parent 0a0e89e3d3
commit a25d46314a
+2 -2
View File
@@ -947,8 +947,8 @@ function Stream(sc, id, localId, pc, up) {
*/ */
this.onclose = null; this.onclose = null;
/** /**
* onerror is called whenever an error occurs. If the error is * onerror is called whenever a fatal error occurs. The stream will
* fatal, then onclose will be called afterwards. * then be closed, and onclose called normally.
* *
* @type{(this: Stream, error: unknown) => void} * @type{(this: Stream, error: unknown) => void}
*/ */