summaryrefslogtreecommitdiff
path: root/zjit/src
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2025-06-04 12:14:44 +0100
committerGitHub <[email protected]>2025-06-04 20:14:44 +0900
commita87b089349cdf710cf743adafa6f73c3adbba260 (patch)
treef21cca03076f9095866bb52aef97a0e7b388c730 /zjit/src
parent675f33508cc08cbd17ff8dc1b14bbbe256a709ba (diff)
ZJIT: Fix incorrect method name in test for Array#size
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13487 Merged-By: XrXr
Diffstat (limited to 'zjit/src')
-rw-r--r--zjit/src/hir.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs
index 68d6ac1b8f..1d163e5741 100644
--- a/zjit/src/hir.rs
+++ b/zjit/src/hir.rs
@@ -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
"#]]);