diff --git a/lib/internal/quic/state.js b/lib/internal/quic/state.js index 22763c1df31b68..8815b0bb4c32cf 100644 --- a/lib/internal/quic/state.js +++ b/lib/internal/quic/state.js @@ -933,7 +933,8 @@ class QuicStreamState { } [kInspect](depth, options) { - if (DataViewPrototypeGetByteLength(this.#handle) === 0) { + if (this.#handle === undefined || + DataViewPrototypeGetByteLength(this.#handle) === 0) { return 'QuicStreamState { }'; }