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
// The compiler must simplify any calculations it receives from the host// before returning them from a function. If this simplification produces an// error, it should be treated as though the function call threw that error.// It should *not* be treated as a protocol error.
Currently the embedded compiler throws a protocol error which causes compiler shutdown when user constructs an incorrect Calculation.
According to previous discussions (sass/embedded-protocol#98 & sass/dart-sass-embedded#118), for any host side input that the host relies on the compiler side logic for validation, the validation error should be result in CompileFailure instead of ProtocolError.
The text was updated successfully, but these errors were encountered:
https://github.com/sass/sass/blob/524790175f9f236c9578217d2137b18e524e4e53/spec/embedded_sass.proto#L897-L900
Currently the embedded compiler throws a protocol error which causes compiler shutdown when user constructs an incorrect
Calculation
.According to previous discussions (sass/embedded-protocol#98 & sass/dart-sass-embedded#118), for any host side input that the host relies on the compiler side logic for validation, the validation error should be result in CompileFailure instead of ProtocolError.
The text was updated successfully, but these errors were encountered: