Skip to content

buffer: fix segfaults when `this` is not a Buffer.

Return Object.prototype.toString(this) in such a case; this approach is inspired by Array.prototype.toString.

Fixes #1485 (closed).

Merge request reports

Loading