In Electron env, buffer.transcode is undefined


#1

I use electron 1.7.5 with node 7.9.0, OS is win10

I want use buffer.transcode. Code is as follows:
`
const buffer = require(‘buffer’);
console.log(buffer.transcode);

// Prints: ‘undefined’
`

but the same code run in cmd. the print result is ‘[Function: transcode]’.
2