Skip to content

Commit 5cfbdf8

Browse files
committed
Fix incorrect method name in Array#size's zjit test
1 parent 5f24741 commit 5cfbdf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zjit/src/hir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4680,14 +4680,14 @@ mod opt_tests {
46804680
fn eliminate_array_size() {
46814681
eval("
46824682
def test
4683-
x = [].length
4683+
x = [].size
46844684
5
46854685
end
46864686
");
46874687
assert_optimized_method_hir("test", expect![[r#"
46884688
fn test:
46894689
bb0():
4690-
PatchPoint MethodRedefined(Array@0x1000, length@0x1008)
4690+
PatchPoint MethodRedefined(Array@0x1000, size@0x1008)
46914691
v6:Fixnum[5] = Const Value(5)
46924692
Return v6
46934693
"#]]);

0 commit comments

Comments
 (0)