diff options
author | wanabe <[email protected]> | 2025-01-15 12:29:06 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-01-15 04:07:43 +0000 |
commit | 96b5cde28bba189b6cfddce5d507eb751dda03b3 (patch) | |
tree | 665543415eb84d9f1d8130cdbd6b26f0ee626630 /lib/erb.rb | |
parent | 04ec07794657cd2444ecb001a522b9df2db1b90a (diff) |
[ruby/erb] Make `ERB::NOT_GIVEN` ractor-shareable
https://github.com/ruby/erb/commit/348777b5bf
Diffstat (limited to 'lib/erb.rb')
-rw-r--r-- | lib/erb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erb.rb b/lib/erb.rb index 79711db628..bdff2deceb 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -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 ## |