Expression collapse bug

Bugs will be moved here once resolved.

Post » Mon Feb 25, 2013 7:14 pm

Link to .capx file (required!):
http://dl.dropbox.com/u/5426011/examples16/expressionCollaseBug.capx

Steps to reproduce:
Using any expression with literals that result in NaN or infinity when collapsed will cause a syntax error at runtime.

Observed result:/Expected result:/Proposed solution:
For 1/0 the result is 1#INF when exporting, it should be Infinity.
For -1^0.5 the result is -1#IND when exporting, it should be NaN.

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: untested (likely yes)

Operating system & service pack:
Winxp sp3

Construct 2 version:
r119 but should happen in any version.
    R0J0hound2013-02-25 19:19:55
B
79
S
24
G
53
Posts: 4,735
Reputation: 40,233

Post » Mon Mar 04, 2013 5:00 pm

Interesting bug, nice find. Should be fixed for next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 7 guests