diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2023-03-07 17:03:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 17:03:43 -0500 |
commit | 56df6d5f9d986a7959eb9cac27e21bc2ed505319 (patch) | |
tree | 3ce9efc14aa28e2b5e9f050fc8a7037980d78fb1 /yjit/bindgen | |
parent | 33edcc112081f96856d52e73253d73c97a5c4a3c (diff) | |
download | ruby-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.rs | 1 |
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") |