Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E0965200C3E for ; Tue, 21 Mar 2017 18:43:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DF0A3160B90; Tue, 21 Mar 2017 17:43:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 36B68160B6E for ; Tue, 21 Mar 2017 18:43:46 +0100 (CET) Received: (qmail 48371 invoked by uid 500); 21 Mar 2017 17:43:44 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 48356 invoked by uid 99); 21 Mar 2017 17:43:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2017 17:43:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6634B18131D for ; Tue, 21 Mar 2017 17:43:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.349 X-Spam-Level: X-Spam-Status: No, score=-99.349 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id b4P4CbJ4wLJz for ; Tue, 21 Mar 2017 17:43:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 853DE5FD81 for ; Tue, 21 Mar 2017 17:43:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 73A51E0BD1 for ; Tue, 21 Mar 2017 17:43:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C5E1F254E2 for ; Tue, 21 Mar 2017 17:43:41 +0000 (UTC) Date: Tue, 21 Mar 2017 17:43:41 +0000 (UTC) From: "Alex Harui (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-35283) parseInt Implementation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Mar 2017 17:43:47 -0000 [ https://issues.apache.org/jira/browse/FLEX-35283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934969#comment-15934969 ] Alex Harui commented on FLEX-35283: ----------------------------------- Wow! That's really thorough research! Thanks for doing it. Using 'undefined' or 'void 0' is ok with me, but it makes me wonder why Google bothered to make the second parameter required. I would think the second argument would be 'undefined' if it was optional and left out of the code. As long as the main goal of having AS results match JS results for all combinations of one or two parameters into parseint, and the output overhead and compiler overhead is small, I think we have arrived at the right answer. > parseInt Implementation > ----------------------- > > Key: FLEX-35283 > URL: https://issues.apache.org/jira/browse/FLEX-35283 > Project: Apache Flex > Issue Type: Bug > Components: FalconJX > Affects Versions: Apache FalconJX 0.8.0 > Reporter: Greg Dove > Assignee: Greg Dove > > parseInt does not correctly process hex strings without no second parameter > parseInt("0x99") > this should calculate as 153 > it is currently compiled to > parseInt("0x99",10) > in js which evaluates to 0 -- This message was sent by Atlassian JIRA (v6.3.15#6346)