Skip to content

Commit de70988

Browse files
committed
Fix harness-common.rb to not depend on Ractor being defined
* Ractor is only defined on CRuby.
1 parent ee7230c commit de70988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harness/harness-common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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) && !Ractor.respond_to?(:make_shareable)
1717
class Ractor
1818
#noop
1919
def make_shareable(obj, copy: false); obj; end

0 commit comments

Comments
 (0)