Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure CSSTree does not hold onto last parsed string
When done compiling, force CSSTree to parse an empty string, so as to ensure it doesn't keep a reference to that string. Typically, the string passed to CSSTree is a small slice of a larger string which is a whole filter list. This means that holding a reference to the sliced string causes the JS engine to hold in memory to the whole filter list last parsed.
- Loading branch information