If you use 10 as the radix, you're fine. The strange behavior is when you omit the radix because some browsers try to be smart and detect things like a leading 0 as an octal number.
- Josh On Tue, May 17, 2016 at 12:17 AM, Tom Chiverton <t...@extravision.com> wrote: > I think parseInt() in JS has really odd behaviour and is best avoided. > > Tom > > On 17 May 2016 07:46:07 BST, Alex Harui <aha...@adobe.com> wrote: > >I pushed changes for just the "x as int" case. > > > >On 5/16/16, 12:30 PM, "Harbs" <harbs.li...@gmail.com> wrote: > > > >>I assume int() will cross-compile to parseInt()? > > > >Currently the compiler calls Language._int(), but the code in there > >doesn't call parseInt. Should it? > > > >-Alex > > > > > >______________________________________________________________________ > >This email has been scanned by the Symantec Email Security.cloud > >service. > >For more information please visit http://www.symanteccloud.com > >______________________________________________________________________ > > -- > Tom Chiverton > Sent from my phone. Please excuse my brevity.