]> zoso.dev Git - buffer.git/commit
Fix fatal error of surrogte pair
authorKoki Takahashi <hakatasiloving@gmail.com>
Thu, 12 Nov 2015 09:20:25 +0000 (18:20 +0900)
committerKoki Takahashi <hakatasiloving@gmail.com>
Thu, 12 Nov 2015 09:20:25 +0000 (18:20 +0900)
commit0d5f4d150758813b253b891f9fec92af4ca66caa
tree7bfc46262a0759e7e5fb0813ca7113053174f514
parent2b3c6a6b3b95716147ceeb2f2f0209ddaa47fd18
Fix fatal error of surrogte pair

Current implementation of surrogate pair doesn't take codepoints over
U+20000 into consideration. This is invalid since original specification
of UTF-16 is valid until U+10FFFF.
index.js
test/from-string.js