Closed nickolaj-jepsen closed 1 year ago
😃 but how this className got there?
smiley but how this className got there?
It surfaced during a fuzzing test of one of our components, don't worry we aren't using toString
as a class name in production :wink:
Thanks for the fast merge and excellent library :slightly_smiling_face:
As I understand there is no real need to release a new version with the fix. Let me hold it for a week and incorporate into the next update.
This PR fixes an issue in
astToUsedStyles
, that would crash if it received a class name which also was a function in the Object.prototype eg. "toString", becauselookup["toString"]
would return a function, which would causefiles.forEach
to fail with the errorTypeError: files.forEach is not a function