<!-- Thank you for reporting a possible bug in Node.js. Please fill in as much of the template below as you can. Version: output of `node -v` Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Subsystem: if known, please specify the affected core module name If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you can. --> * **Version**: v10.9.0 * **Platform**: Linux jordan-MS-7817 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux * **Subsystem**: <!-- Please provide more details below this comment. --> [According to the documentation, the Buffer.from() function should accept byteOffset and length parameters](https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_arraybuffer_byteoffset_length), but those are actually ignored: ``` Buffer.from( "hello world" ) <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64> Buffer.from( "hello world", 2, 3 ) <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64> ``` Expected output: ``` Buffer.from( "hello world", 2, 3 ) <Buffer 6c 6c 6f> ```
According to the documentation, the Buffer.from() function should accept byteOffset and length parameters, but those are actually ignored:
Expected output: