JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit

: The issue tracker is now writable again and logged users can download files too. But note that our support is very LIMITED.

List of issuesList of issues

#1088 EcmaScript number to string conversion wrong
Author: developer honfika
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: upgraded Help

> What steps will reproduce the problem? Build run_as2 and run_as3 projects. In enable testAs2 and testAs3 methods. Fix them. The conversion is in, this is a modified version of the Java's FloatingDecimal class. > What is the expected output? What do you see instead? expected: test success > What version of the product are you using? Is it "nightly build"? Which operating system do you have? 7.0.1 > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. Hint: testAs2 runs quite fast, some seconds only, but for testAs3 i recommend you to set the starting value if variable "i" to 162. Only i=162 (multiply instruction) and i=163 (divide instruction) fails.
how is the result calculated from p1,p2, r3 ? Flash result (22 Divide p1:'4294967295' p2:-16777216 r3:mystring): Result:number-0.00390625000090949 Type:string FFDec result: Result:number-0.0039062500009095 Type:string
p2 / p1 r3 is not used, it is needed only for StringExtract and MBStringExtract (it need a string, start index and count)
Push p2 Push p1 Operation PushDuplicate TypeOf StackSwap StringAdd so: Push -16777216 Push "4294967295" Divide PushDuplicate TypeOf StackSwap StringAdd
This was fixed in nightly 1787. I added NumberToString class from Nashorn JS Engine. (I do not call Nashorn directly since it is removed from newer Javas)
State: new→upgraded