lib/bootsnap/compile_cache/json.rb in bootsnap-1.10.1 vs lib/bootsnap/compile_cache/json.rb in bootsnap-1.10.2

- old
+ new

@@ -50,10 +50,12 @@ require("msgpack") self.msgpack_factory = MessagePack::Factory.new self.supported_options = [:symbolize_names] if ::JSON.parse('["foo"]', freeze: true).first.frozen? - self.supported_options = [:freeze] + if MessagePack.load(MessagePack.dump("foo"), freeze: true).frozen? + self.supported_options = [:freeze] + end end supported_options.freeze end end