Skip to content

Commit 0e1ee81

Browse files
committed
Fix make_shareable shim in harness-common.rb
* Ractor is not defined on non-CRuby.
1 parent ee7230c commit 0e1ee81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

harness/harness-common.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
# Seed the global random number generator for repeatability between runs
1414
Random.srand(1337)
1515

16-
if !Ractor.respond_to?(:make_shareable)
16+
if !defined?(Ractor.make_shareable)
1717
class Ractor
1818
#noop
19-
def make_shareable(obj, copy: false); obj; end
19+
def self.make_shareable(obj, copy: false); obj; end
2020
end
2121
end
2222

0 commit comments

Comments
 (0)