Fixed: #1088 ECMA Number to string conversion

This commit is contained in:
Jindra Petřík
2021-02-10 10:08:43 +01:00
parent e17376ac72
commit f9fc9998f3
5 changed files with 825 additions and 1667 deletions
@@ -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.action.model;
import com.jpexs.decompiler.flash.SourceGeneratorLocalData;
@@ -182,8 +183,7 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue {
return writer.appendWithData(((RegisterNumber) value).translate(), srcData);
}
//return writer.append(value.toString());
return writer.append(EcmaScript.toString(value, true)); // todo, use this line
return writer.append(EcmaScript.toString(value));
}
@Override