cssinjs icon indicating copy to clipboard operation
cssinjs copied to clipboard

Uncaught RangeError: Invalid string length

Open wang-yikai opened this issue 2 years ago • 0 comments

The following line causes the string to become very large if there are a lot of tokens: https://github.com/ant-design/cssinjs/blob/92dce00796e2644dad391b49ec1def849329234a/src/util.ts#L47

Screenshot 2023-11-01 at 4 21 56 PM

If the string becomes too long, it would exceed the capacity of the runtime system and raise an Uncaught RangeError: Invalid string length error.

wang-yikai avatar Nov 02 '23 15:11 wang-yikai