feat: remove memoryLimit option (#910)

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Yang Jun
2026-07-11 15:29:52 +08:00
co-authored by Cursor
parent f0b6cd375c
commit 0d2f0f1ea7
15 changed files with 51 additions and 269 deletions
-7
View File
@@ -519,13 +519,6 @@ describe('Issues', function () {
const result = engine.parseAndRenderSync(`\n{{ "foo" | pos }}`)
expect(result).toEqual('\n[2,12] foo')
})
it("memoryLimit doesn't work in for tag #776", () => {
const engine = new Liquid({
memoryLimit: 1e5
})
const tpl = `{% for i in (1..1000000000) %} {{'a'}} {% endfor %}`
expect(() => engine.parseAndRenderSync(tpl)).toThrow('memory alloc limit exceeded, line:1, col:1')
})
it('group_by_exp fails with object as input #785', () => {
const site = {
tags: {