If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issues#2717 String conversion disappears
Author:
Thisguy248
Thisguy248Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: new 

> What steps will reproduce the problem?
Save this line of code where episode is int param to a function:
return String(episode).replace(String(episode / 10),String.fromCharCode(97 + (episode / 10
- 10)));
> What is the expected output? What do you see instead?
What appears after save:
return episode.replace(episode / 10,String.fromCharCode(97 + (episode / 10 - 10)));
It works properly and converts to string after the first save.
However, if you save again without adding the string conversions back you get an error:
TypeError: Error #1006: value is not a function.
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
v.26.0.0 nb 3514