Repository navigation
Shopify Liquid 5.14.0, port revision 7.
Changed (a filter error under RaiseErrors)
- With
RaiseErrors, a filter error ends the render, as Ruby'srender!raises it:
{{ 1 | divided_by: 0 }}, a filter given too few or too many arguments, or a Go error a filter
returns, now makeRenderreturn the error, recorded once, instead of rendering nothing while
the render went on.RaiseErrorsdid this for every other recorded error, as its documentation
says. Without it, a filter error is still recorded and writes nothing.
Tests
TestRaiseErrorsEndsTheRenderOnAFilterError,TestAFilterErrorWithoutRaiseErrorsIsRecorded:
the error, recorded once inside enclosing blocks, for a standard filter, an arity error and a
custom filter's Go error; unchanged withoutRaiseErrors.TestFilterKeywordArguments: a call with too many arguments renders nothing without
RaiseErrors, and ends the render with Ruby'swrong number of argumentswith it.- Five Shopify conformance cases now match Ruby (
modulo: 0, anddivided_by: 0.0followed by
round,ceilorfloor): their entries leaveknown_divergences.json.