clean up all warnings by using new Environment

This commit is contained in:
Michael Go
2024-11-04 16:15:05 -04:00
parent b0cba0bfd2
commit c77ff68573
11 changed files with 73 additions and 79 deletions
+2 -1
View File
@@ -4,7 +4,8 @@ require 'benchmark/ips'
require_relative 'theme_runner'
RubyVM::YJIT.enable if defined?(RubyVM::YJIT)
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
Liquid::Environment.default.error_mode = ARGV.first.to_sym if ARGV.first
profiler = ThemeRunner.new
Benchmark.ips do |x|