aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 740ef5f2..270af9b4 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -133,14 +133,10 @@ function is_letter(code) {
}
function is_surrogate_pair_head(code) {
- if (typeof code == "string")
- code = code.charCodeAt(0);
return code >= 0xd800 && code <= 0xdbff;
}
function is_surrogate_pair_tail(code) {
- if (typeof code == "string")
- code = code.charCodeAt(0);
return code >= 0xdc00 && code <= 0xdfff;
}