Index: src/js/regexp.js |
diff --git a/src/js/regexp.js b/src/js/regexp.js |
index 8e27059bcc861047b1b2d377fb2a29c3e3473f59..b9b096492b754095d41056f72e82411e49376e13 100644 |
--- a/src/js/regexp.js |
+++ b/src/js/regexp.js |
@@ -296,7 +296,7 @@ function AtSurrogatePair(subject, index) { |
var first = %_StringCharCodeAt(subject, index); |
if (first < 0xD800 || first > 0xDBFF) return false; |
var second = %_StringCharCodeAt(subject, index + 1); |
- return second >= 0xDC00 || second <= 0xDFFF; |
+ return second >= 0xDC00 && second <= 0xDFFF; |
} |