Files
node/lib
Jackson Tian 748d2b4de1 buffer: make byteLength work with Buffer correctly
Make the byteLength work correctly when input is Buffer.

e.g:

```js
// The incomplete unicode string
Buffer.byteLength(new Buffer([0xe4, 0xb8, 0xad, 0xe6, 0x96]))
```
The old output: 9
The new output: 5

PR-URL: https://github.com/nodejs/node/pull/4738
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-02-15 11:30:23 -08:00
..
2015-05-09 12:10:02 +09:00
2016-01-19 11:52:38 -08:00
2016-01-19 11:52:32 -08:00
2016-01-19 11:52:39 -08:00
2015-06-11 20:24:44 +02:00
2016-01-19 11:52:31 -08:00
2015-01-31 23:47:29 -05:00