Skip to content

Commit 8dca7c2

Browse files
avm2/tests: Fix getglobalslot op and add a test
1 parent ec0d362 commit 8dca7c2

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

core/src/avm2/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ fn translate_op<'gc>(
10481048
return Ok((
10491049
first_op,
10501050
Some(Op::GetSlot {
1051-
index: index as usize,
1051+
index: index as usize - 1,
10521052
}),
10531053
));
10541054
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[class Test]
400 Bytes
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
num_frames = 1

0 commit comments

Comments
 (0)