mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-12 14:21:56 +00:00
Fixed AS3 Simplify expressions - Do not convert this to {} when coerced
This commit is contained in:
@@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
|
||||
- [#2094] AS3 missing star type on var and const
|
||||
- [#2094] AS3 Getting register names from debug info - do not allow assigning `_locX_` name to other register than X
|
||||
- [#2094] Embed font name taken from the fontTag, not DefineFontName
|
||||
- AS3 Simplify expressions - Do not convert this to {} when coerced
|
||||
|
||||
## [19.0.0] - 2023-10-01
|
||||
### Added
|
||||
|
||||
@@ -127,7 +127,15 @@ public class CoerceAVM2Item extends AVM2Item {
|
||||
return false;
|
||||
}
|
||||
dependencies.add(value);
|
||||
return value.isConvertedCompileTime(dependencies);
|
||||
switch(typeObj.toString()) {
|
||||
case "String":
|
||||
case "Boolean":
|
||||
case "int":
|
||||
case "uint":
|
||||
case "Number":
|
||||
return value.isConvertedCompileTime(dependencies);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -31,7 +31,7 @@ public class ObjectType implements Callable {
|
||||
public static final ObjectType EMPTY_OBJECT = new ObjectType();
|
||||
|
||||
protected Map<String, Object> attributes;
|
||||
|
||||
|
||||
public void setAttribute(String name, Object value) {
|
||||
attributes.put(name, value);
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
|
||||
case "Boolean":
|
||||
r = EcmaScript.toBoolean(r);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
GraphTargetItem it2 = valToItem(r);
|
||||
if (it2 == null) {
|
||||
|
||||
Reference in New Issue
Block a user