sass / dart-sass

The reference implementation of Sass, written in Dart.
https://sass-lang.com/dart-sass
MIT License
3.9k stars 352 forks source link

Fix duplicated isolates for the same compilation id #2308

Closed ntkme closed 1 month ago

ntkme commented 1 month ago

This PR fixes a bug where multiple isolates may be spawned for the same compilation id due to async gap between checking _activeIsolates[compilationId] and assigning _activeIsolates[compilationId] = isolate;, if the host sends packets with the same compilation id extremely quickly.

Current buggy behavior:

Fixed: