mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-01 03:17:00 +00:00
Fixed AS1/2 - loops and switch break/continue vs definefunction
This commit is contained in:
@@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
|
||||
- AS1/2 - Allow nonstandard identifiers in object literal
|
||||
- AS1/2 - Allow globalfunc names as variable identifiers
|
||||
- AS1/2 - Registers in for..in clause, proper define
|
||||
- AS1/2 - loops and switch break/continue vs definefunction
|
||||
|
||||
## [14.5.2] - 2021-11-20
|
||||
### Fixed
|
||||
|
||||
@@ -196,7 +196,7 @@ public class ActionSourceGenerator implements SourceGenerator {
|
||||
private void fixLoop(List<Action> code, int breakOffset, int continueOffset) {
|
||||
int pos = 0;
|
||||
for (Action a : code) {
|
||||
pos += a.getTotalActionLength();
|
||||
pos += a.getBytesLength();
|
||||
if (a instanceof ActionJump) {
|
||||
ActionJump aj = (ActionJump) a;
|
||||
if (aj.isContinue && (continueOffset != Integer.MAX_VALUE)) {
|
||||
|
||||
Reference in New Issue
Block a user