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
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Mon Mar 04, 2013 5:00 pm

Interesting bug, nice find. Should be fixed for next build.
Scirra Founder
B
399
S
236
G
89
Posts: 24,541
Reputation: 195,426


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests