Commit 03518ad
Brian Vaughn
Updated the utfDecodeString() method to avoid a RangeError
Previously we were spreading the array of encoded values into String.fromCodePoint(...array). Functions arguments are first placed on the stack before the function is called though, which caused an error to be thrown for very large encoded strings.1 parent a8cabb5 commit 03518ad
File tree
1 file changed
+10
-1
lines changed1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
0 commit comments