string_decoder: Fix failures from new test cases
authorFelix Geisendörfer <felix@debuggable.com>
Tue, 13 May 2014 15:36:40 +0000 (17:36 +0200)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 6 Jun 2014 22:07:29 +0000 (15:07 -0700)
commit9fbd0f0f7df16536533c331e3c634b203087d521
treeb16eb2f145e5e77a145b13fd5a13cb4475b0c5b4
parent22b839845c204310e8d78e28dd0cf9f6b3fff6aa
string_decoder: Fix failures from new test cases

This patch simplifies the implementation of StringDecoder, fixes the
failures from the new test cases, and also no longer relies on v8's
WriteUtf8 function to encode individual surrogates.
lib/string_decoder.js