We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f24741 commit 5cfbdf8Copy full SHA for 5cfbdf8
1 file changed
zjit/src/hir.rs
@@ -4680,14 +4680,14 @@ mod opt_tests {
4680
fn eliminate_array_size() {
4681
eval("
4682
def test
4683
- x = [].length
+ x = [].size
4684
5
4685
end
4686
");
4687
assert_optimized_method_hir("test", expect![[r#"
4688
fn test:
4689
bb0():
4690
- PatchPoint MethodRedefined(Array@0x1000, length@0x1008)
+ PatchPoint MethodRedefined(Array@0x1000, size@0x1008)
4691
v6:Fixnum[5] = Const Value(5)
4692
Return v6
4693
"#]]);
0 commit comments