Please sign in to comment.
Avoid infinite loop on malformed message (#1208)
* Avoid infinite loop on malformed message If handling of such messages is deemed unimportant, `indexOf` is still faster (~40%) and cleaner than a manual loop. Addresses #1048 to an extent. * Use indexOf fallback for Node ≤0.12
- Loading branch information...