Closed Bug 709760 Opened 13 years ago Closed 13 years ago

[ASC BUG] String(float.MAX_VALUE) is constant-folded incorrectly

Categories

(Tamarin Graveyard :: Tools, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
Q2 12 - Cyril

People

(Reporter: lhansen, Assigned: lhansen)

References

Details

ASC constant-folds String(float.MAX_VALUE) as the string "340282346638528859811704183484516925440", which is wrong - the correct result should be the same as String(Number(float.MAX_VALUE)).
Assignee: nobody → lhansen
Bug in stringValue() in Ast.java, looks like it was unfinished code.
asc-float:

changeset:   84:7ab1763f7046
tag:         tip
user:        Lars T Hansen <lhansen@adobe.com>
date:        Mon Dec 12 15:32:43 2011 +0100
summary:     Fix 709760 - [ASC BUG] String(float.MAX_VALUE) is constant-folded incorrectly

tr-float:

changeset:   7062:4973768a0603
tag:         tip
user:        Lars T Hansen <lhansen@adobe.com>
date:        Mon Dec 12 15:33:44 2011 +0100
summary:     Fix 709760 - [ASC BUG] String(float.MAX_VALUE) is constant-folded incorrectly; test case; new asc.jar
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
BTW float4 had the same problem.

Test media pushed to tr-float/test/acceptance/as3/asc/float-max-value-as-string.as.
Status: RESOLVED → VERIFIED
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.