From 2ba090a1f9258035b40374f9ff9da3ff920701cd Mon Sep 17 00:00:00 2001 From: eileencodes Date: Tue, 10 Aug 2021 09:10:34 -0400 Subject: Add toregexp to yjit The FIXME is there so we remember to investigate why insns clears the temporary array. Is this necessary? If it's not we can remove it from both. Co-authored-by: Aaron Patterson --- test/ruby/test_yjit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb index 8160042cb9..1f5f99f9a8 100644 --- a/test/ruby/test_yjit.rb +++ b/test/ruby/test_yjit.rb @@ -67,6 +67,10 @@ class TestYJIT < Test::Unit::TestCase assert_no_exits('"i am a string #{true}"') end + def test_compile_regexp + assert_no_exits('/#{true}/') + end + def test_getlocal_with_level assert_compiles(<<~RUBY, insns: %i[getlocal opt_plus], result: [[7]]) def foo(foo, bar) -- cgit v1.2.3