提交 d4e1a759 编写于 作者: A Aaron Patterson

reuse the same frame so we don't need a singleton hash

We just want to augment the scope level, not the frame itself, so just
copy the frame to the new scope object.
上级 44a7fe67
......@@ -1974,9 +1974,8 @@ def new(hash)
self.class.new hash, self, scope_level
end
EMPTY_HASH = {}.freeze
def new_level(level)
self.class.new(EMPTY_HASH, self, level)
self.class.new(frame, self, level)
end
def [](key)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册