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 675f335 commit a87b089Copy full SHA for a87b089
zjit/src/hir.rs
@@ -4715,14 +4715,14 @@ mod opt_tests {
4715
fn eliminate_array_size() {
4716
eval("
4717
def test
4718
- x = [].length
+ x = [].size
4719
5
4720
end
4721
");
4722
assert_optimized_method_hir("test", expect![[r#"
4723
fn test:
4724
bb0():
4725
- PatchPoint MethodRedefined(Array@0x1000, length@0x1008)
+ PatchPoint MethodRedefined(Array@0x1000, size@0x1008)
4726
v6:Fixnum[5] = Const Value(5)
4727
Return v6
4728
"#]]);
0 commit comments