summaryrefslogtreecommitdiff
path: root/test/ruby/test_shapes.rb
diff options
context:
space:
mode:
authorAaron Patterson <[email protected]>2022-10-12 14:37:02 -0700
committerAaron Patterson <[email protected]>2022-10-13 13:11:01 -0700
commite5058b58c22e19d559b1122d94af5af3931aa416 (patch)
tree6bfd4dba20d8905436ee0c8c9e1992cb10117d83 /test/ruby/test_shapes.rb
parent1b0c9d0e3d6dc3630072dc16c143e0d79886b7a0 (diff)
Only expose Ruby Shape API if VM_CHECK_MODE is enabled
Diffstat (limited to 'test/ruby/test_shapes.rb')
-rw-r--r--test/ruby/test_shapes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_shapes.rb b/test/ruby/test_shapes.rb
index 7142c30cd5..0da296189d 100644
--- a/test/ruby/test_shapes.rb
+++ b/test/ruby/test_shapes.rb
@@ -179,4 +179,4 @@ class TestShapes < Test::Unit::TestCase
RubyVM::Shape.find_by_id(-1)
end
end
-end
+end if defined?(RubyVM::Shape)