summaryrefslogtreecommitdiff
path: root/yjit/bindgen
diff options
context:
space:
mode:
authorJimmy Miller <jimmy.miller@shopify.com>2023-03-07 17:03:43 -0500
committerGitHub <noreply@github.com>2023-03-07 17:03:43 -0500
commit56df6d5f9d986a7959eb9cac27e21bc2ed505319 (patch)
tree3ce9efc14aa28e2b5e9f050fc8a7037980d78fb1 /yjit/bindgen
parent33edcc112081f96856d52e73253d73c97a5c4a3c (diff)
downloadruby-56df6d5f9d986a7959eb9cac27e21bc2ed505319.tar.gz
YJIT: Handle splat+rest for args pass greater than required (#7468)
For example: ```ruby def my_func(x, y, *rest) p [x, y, rest] end my_func(1, 2, 3, *[4, 5]) ```
Diffstat (limited to 'yjit/bindgen')
-rw-r--r--yjit/bindgen/src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs
index 481c403714..71bf1df3e8 100644
--- a/yjit/bindgen/src/main.rs
+++ b/yjit/bindgen/src/main.rs
@@ -136,6 +136,7 @@ fn main() {
.allowlist_function("rb_ary_resurrect")
.allowlist_function("rb_ary_clear")
.allowlist_function("rb_ary_dup")
+ .allowlist_function("rb_yjit_rb_ary_unshift_m")
// From internal/array.h
.allowlist_function("rb_ec_ary_new_from_values")