Skip to content

Commit 386788f

Browse files
committed
fix test
1 parent 2ca1165 commit 386788f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/language/lexer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,11 +597,11 @@ function convertUnicodeEscape(source, body, position) {
597597
}
598598

599599
function isLeadingSurrogate(charCode) {
600-
return 0xd800 <= charCode && charCode <= 0xdbff;
600+
return charCode >= 0xd800 && charCode <= 0xdbff;
601601
}
602602

603603
function isTrailingSurrogate(charCode) {
604-
return 0xdc00 <= charCode && charCode <= 0xdfff;
604+
return charCode >= 0xdc00 && charCode <= 0xdfff;
605605
}
606606

607607
/**

0 commit comments

Comments
 (0)