creationix/jsonparse — pull request #12 by substack (2012-12-21 03:11:12+00:00)
Title: make sure that the buffer can .slice() before trying to slice it

This fix is necessary in environments like browsers where sometimes without warning you'll have an Int32Array instead of a string or a buffer.