Commit 0175f03
committed
fix some buglets in surrogate pair decoding
First, the correct constant to use is 0x10000, aka Math.pow(2,20).
Second, arrange to skip the low surrogate. Finally, fix the math in
stringFromCode as well, and remove an extraneous semicolon.1 parent 433a225 commit 0175f03
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments