Fixes: https://github.com/feross/buffer/issues/241
See: https://github.com/feross/buffer/pull/204#issuecomment-
520986017
var base64 = require('base64-js')
var ieee754 = require('ieee754')
-var customInspectSymbol = typeof Symbol === 'function' ? Symbol.for('nodejs.util.inspect.custom') : null
+var customInspectSymbol =
+ (typeof Symbol === 'function' && typeof Symbol.for === 'function')
+ ? Symbol.for('nodejs.util.inspect.custom')
+ : null
exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer