Stop freezing the static environment hashes to allow Proc memoization (#1623)

This commit is contained in:
Dylan Thacker-Smith
2022-09-14 15:00:57 -04:00
committed by GitHub
parent bb7027138e
commit cab08cfe57
+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 = []