[ruby/erb] Make ERB::NOT_GIVEN ractor-shareable

https://github.com/ruby/erb/commit/348777b5bf
This commit is contained in:
wanabe 2025-01-15 12:29:06 +09:00 committed by git
parent 04ec077946
commit 96b5cde28b

View File

@ -353,7 +353,7 @@ class ERB
@lineno = 0
@_init = self.class.singleton_class
end
NOT_GIVEN = Object.new
NOT_GIVEN = defined?(Ractor) ? Ractor.make_shareable(Object.new) : Object.new
private_constant :NOT_GIVEN
##