summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-08-10 13:29:01 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-29 08:47:10 -0700
commitdf84832c758e3dcb360f18335c2c93dcc90344aa (patch)
tree5e39a15d4626abcd53bef78a4d9def282ab77b0c /bootstraptest
parente5969f8587dd80367347356e11ddcf3976439d1c (diff)
downloadruby-df84832c758e3dcb360f18335c2c93dcc90344aa.tar.gz
Port getblockparamproxy and getblockparam (https://github.com/Shopify/ruby/pull/394)
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_yjit.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index 7aed5ac43c..d44fe25800 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -3220,3 +3220,19 @@ assert_equal 'foo', %q{
Foo = Struct.new(:bar)
Foo.new("foo").bar
}
+
+# getblockparamproxy
+assert_equal 'foo', %q{
+ def foo(&block)
+ block.call
+ end
+ foo { "foo" }
+}
+
+# getblockparam
+assert_equal 'foo', %q{
+ def foo(&block)
+ block
+ end
+ foo { "foo" }.call
+}