Skip to content

Commit 5d8f7f8

Browse files
committed
Add back omitted code
1 parent cd5bd1c commit 5d8f7f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions/strings/ord.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function ord (string) {
1717
return code; // This is just a high surrogate with no following low surrogate, so we return its value;
1818
// we could also throw an error as it is not a complete character, but someone may want to know
1919
}
20+
var low = str.charCodeAt(1);
2021
return ((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;
2122
}
2223
if (0xDC00 <= code && code <= 0xDFFF) { // Low surrogate

0 commit comments

Comments
 (0)