@@ -130,7 +130,7 @@ int _js_decode_string(uint16_t *const dest, size_t *destoff,
130130 *d++ = (uint16_t) unidata;
131131
132132 if (surrogate) {
133− if (unidata <= 0xDC00 || unidata >= 0xDFFF) // is not low surrogate
133+ if (unidata < 0xDC00 || unidata > 0xDFFF) // is not low surrogate
134134 return -1;
135135 surrogate = 0;
136136 } else if (unidata >= 0xD800 && unidata <= 0xDBFF ) { // is high surrogate
@@ -147,4 +147,3 @@ int _js_decode_string(uint16_t *const dest, size_t *destoff,
147147 if (codepoint != 'u') { return -1; }
148148 DISPATCH_ASCII(unicode1)
149149}
150−