You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ha...@gmail.com> on 2017/03/06 14:10:38 UTC

[FlexJS] int.MAX_VALUE

int.MAX_VALUE (and presumably int.MIN_VALUE) is not something that’s recognized by FlexJS. Is that something we want to fix?

Harbs

Re: [FlexJS] int.MAX_VALUE

Posted by Harbs <ha...@gmail.com>.
I already changed it to use 2147483647 and -2147483647 instead of the constants.

If I get ambitious, I’ll try to track it down and figure out why my build is special, but I’m fine with just using the values in my case.


> On Mar 6, 2017, at 5:54 PM, Alex Harui <ah...@adobe.com> wrote:
> 
> 
> 
> On 3/6/17, 6:10 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>> int.MAX_VALUE (and presumably int.MIN_VALUE) is not something that’s
>> recognized by FlexJS. Is that something we want to fix?
> 
> Yes.  There is special case code in the compiler to handle it and the unit
> tests are passing, so there must be something about how you are actually
> using it that the compiler hasn't anticipated.
> 
> -Alex
> 


Re: [FlexJS] int.MAX_VALUE

Posted by Alex Harui <ah...@adobe.com>.

On 3/6/17, 6:10 AM, "Harbs" <ha...@gmail.com> wrote:

>int.MAX_VALUE (and presumably int.MIN_VALUE) is not something that’s
>recognized by FlexJS. Is that something we want to fix?

Yes.  There is special case code in the compiler to handle it and the unit
tests are passing, so there must be something about how you are actually
using it that the compiler hasn't anticipated.

-Alex