Fixed #1490, #1493 AS1/2 direct editation of cast op, cast op decompilation

This commit is contained in:
Jindra Petřík
2021-02-13 21:36:08 +01:00
parent 0e0b05947e
commit a954d2f902
14 changed files with 301 additions and 31 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash;
import com.jpexs.decompiler.flash.abc.ABC;
@@ -109,7 +110,8 @@ public class DirectEditingTest extends FileTestBase {
asm.getActionScriptSource(writer, null);
String as = writer.toString();
as = asm.removePrefixAndSuffix(as);
as = asm.removePrefixAndSuffix(as);
ActionScript2Parser par = new ActionScript2Parser(swf);
try {
asm.setActions(par.actionsFromString(as));
} catch (ActionParseException | CompilationException ex) {