summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/erb.rb2
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
##