TooTallNate / ref

Turn Buffer instances into "pointers"
http://tootallnate.github.com/ref
451 stars 141 forks source link

don't fail in node < 6.9.1 #89

Closed btsimonh closed 6 years ago

btsimonh commented 6 years ago

check Buffer.prototype[inspectSym] and SlowBuffer.prototype[inspectSym] are valid before trying to replace them. This basically just disables the modification to inspection for node versions which supply an invalid inspect.custom, but at least it no longer kills the whole application.

TooTallNate commented 6 years ago

Thanks!

underscorebrody commented 6 years ago

@TooTallNate Could we possibly get a release that includes this change? Thanks!!