mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 06:56:56 +00:00
Fixed AS3 Simplify expressions - Do not convert this to {} when coerced
This commit is contained in:
@@ -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