-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LazySpan doesn't follow JS SourceSpan API #1952
Comments
https://github.com/sass/dart-sass/blob/main/lib/src/js/source_span.dart might need to adjust the JS prototype of the LazyFileSpan |
hmm, while this might be needed, I'm not sure it will solve the case of |
I'm not sure this is a bug.
which is certainly still full of implementation details. We could customize this by defining a |
Actually, diving into angular/angular-cli#25134, it looks like the original issue wasn't so much |
The lazy span builder introduced in https://github.com/sass/dart-sass/pull/1916/files causes a bug that sometimes it's implementation is leaked when there is an exception when using the JS API.
Input
Output
Expected
Accessing
.span
returns an object matching theSourceSpan
interface.Version
The text was updated successfully, but these errors were encountered: