You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately my app has to be able to parse a stylesheet that has almost a hundred lines that look like this: @media only screen and (max-width:480px){td[id=cellBody]{padding:10px}
That repeats a couple of hundred times. Totals about 20,000 lines of this. Yes very badly formed. If you look closely you can see that each additional css declaration to be nested in the one above it because it opens 2 brackets and only closes 1 of them.
Handing this to css.parse() causes node.js to run out of call stack space (on my computer the max size is 10483) and emit a RangeError: Maximum call stack size exceeded
I'm working around this in my app, but I'm bringing this to your attention as you may want to detect and handle this edge case in this library.
The text was updated successfully, but these errors were encountered:
Unfortunately my app has to be able to parse a stylesheet that has almost a hundred lines that look like this:
@media only screen and (max-width:480px){td[id=cellBody]{padding:10px}
That repeats a couple of hundred times. Totals about 20,000 lines of this. Yes very badly formed. If you look closely you can see that each additional css declaration to be nested in the one above it because it opens 2 brackets and only closes 1 of them.
Handing this to
css.parse()
causes node.js to run out of call stack space (on my computer the max size is 10483) and emit aRangeError: Maximum call stack size exceeded
I'm working around this in my app, but I'm bringing this to your attention as you may want to detect and handle this edge case in this library.
The text was updated successfully, but these errors were encountered: