We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8cabb5 commit bb7be55Copy full SHA for bb7be55
packages/react-devtools-shared/src/utils.js
@@ -126,7 +126,11 @@ export function getUID(): number {
126
}
127
128
export function utfDecodeString(array: Array<number>): string {
129
- return String.fromCodePoint(...array);
+ // Note that we intentionally map over the Array,
130
+ // rather than spreading it (String.fromCodePoint(...array))
131
+ // to avoid exceeding the stack call size in the Babel-generated code.
132
+ // See github.com/facebook/react/issues/22293#issuecomment-919551764
133
+ return array.map(char => String.fromCodePoint(char)).join('');
134
135
136
export function utfEncodeString(string: string): Array<number> {
0 commit comments