Make array and object prototype singletons immutable for now #4142
This PR contains:
Are tests included?
List any relevant issue numbers:
Currently, Rollup treats the Array and Object prototypes as singletons. This is problematic as we are still using a stateful helper class to implement this, which can lead to a memory leak when used in watch mode. This hopefully improves the situation. Note that in the future, we might rework this again if we ever get to the point that we track mutations of globals.
The text was updated successfully, but these errors were encountered:
@@ Coverage Diff @@ ## master #4142 +/- ## ========================================== + Coverage 98.13% 98.28% +0.15% ========================================== Files 201 201 Lines 7116 7116 Branches 2083 2084 +1 ========================================== + Hits 6983 6994 +11 + Misses 64 58 -6 + Partials 69 64 -5