Stop freezing the static environment hashes to allow Proc memoization

This commit is contained in:
Dylan Thacker-Smith
2022-09-13 17:04:06 -04:00
parent d3647e280d
commit f78cc1ce8e
+1 -1
View File
@@ -26,7 +26,7 @@ module Liquid
@environments = [environments]
@environments.flatten!
@static_environments = [static_environments].flat_map(&:freeze).freeze
@static_environments = [static_environments].flatten(1).freeze
@scopes = [(outer_scope || {})]
@registers = registers.is_a?(Registers) ? registers : Registers.new(registers)
@errors = []