Commit 7240ad44 authored by Trevor Norris's avatar Trevor Norris
Browse files

buffer: allow encoding param to collapse

Currently the signature is indexOf(val[, byteOffset[, encoding]])
Instead allow indexOf(val[, byteOffset][, encoding])
so that byteOffset does not need to be passed.

PR-URL: https://github.com/nodejs/node/pull/4803


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 6712a1fa
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment