mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
ZJIT: Fix incorrect method name in test for Array#size
This commit is contained in:
parent
675f33508c
commit
a87b089349
Notes:
git
2025-06-04 11:14:58 +00:00
Merged: https://github.com/ruby/ruby/pull/13487 Merged-By: XrXr
1 changed files with 2 additions and 2 deletions
|
@ -4715,14 +4715,14 @@ mod opt_tests {
|
|||
fn eliminate_array_size() {
|
||||
eval("
|
||||
def test
|
||||
x = [].length
|
||||
x = [].size
|
||||
5
|
||||
end
|
||||
");
|
||||
assert_optimized_method_hir("test", expect![[r#"
|
||||
fn test:
|
||||
bb0():
|
||||
PatchPoint MethodRedefined(Array@0x1000, length@0x1008)
|
||||
PatchPoint MethodRedefined(Array@0x1000, size@0x1008)
|
||||
v6:Fixnum[5] = Const Value(5)
|
||||
Return v6
|
||||
"#]]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue