We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee7230c commit 0e1ee81Copy full SHA for 0e1ee81
1 file changed
harness/harness-common.rb
@@ -13,10 +13,10 @@
13
# Seed the global random number generator for repeatability between runs
14
Random.srand(1337)
15
16
-if !Ractor.respond_to?(:make_shareable)
+if !defined?(Ractor.make_shareable)
17
class Ractor
18
#noop
19
- def make_shareable(obj, copy: false); obj; end
+ def self.make_shareable(obj, copy: false); obj; end
20
end
21
22
0 commit comments