Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4078D17A45 for ; Mon, 6 Oct 2014 12:07:34 +0000 (UTC) Received: (qmail 76952 invoked by uid 500); 6 Oct 2014 12:07:34 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 76922 invoked by uid 500); 6 Oct 2014 12:07:34 -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 76912 invoked by uid 99); 6 Oct 2014 12:07:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 12:07:33 +0000 Date: Mon, 6 Oct 2014 12:07:33 +0000 (UTC) From: =?utf-8?Q?Tam=C3=A1s_Nepusz_=28JIRA=29?= To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-34579) ObjectUtil.compare() throws TypeError: Error #1006: value is not a function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-34579?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Tam=C3=A1s Nepusz updated FLEX-34579: -------------------------------- Description:=20 Steps to reproduce: 1. Call ObjectUtil.compare() with two identical objects that are not refere= nce-equivalent; this is required to ensure that the execution hits the foll= owing line (line 834) in ObjectUtil: var isDynamicObject:Boolean =3D isDynamicObject(a); 2. Line 834 throws a TypeError: Error #1006: value is not a function. Expected result: No TypeError should be thrown; ObjectUtil.compare() should return zero. The problem can be solved by renaming the isDynamicObject variable to isDyn= amic. =20 was: Steps to reproduce: 1. Call ObjectUtil with two identical objects that are not reference-equiva= lent; this is required to ensure that the execution hits the following line= (line 834) in ObjectUtil: var isDynamicObject:Boolean =3D isDynamicObject(a); 2. Line 834 throws a TypeError: Error #1006: value is not a function. =20 > ObjectUtil.compare() throws TypeError: Error #1006: value is not a functi= on > -------------------------------------------------------------------------= -- > > Key: FLEX-34579 > URL: https://issues.apache.org/jira/browse/FLEX-34579 > Project: Apache Flex > Issue Type: Bug > Affects Versions: Apache Flex 4.13.0 > Environment: AIR SDK 13 and Mac OS X 10.9; probably affects all p= latforms > Reporter: Tam=C3=A1s Nepusz > Labels: EasyFix > > Steps to reproduce: > 1. Call ObjectUtil.compare() with two identical objects that are not refe= rence-equivalent; this is required to ensure that the execution hits the fo= llowing line (line 834) in ObjectUtil: > var isDynamicObject:Boolean =3D isDynamicObject(a); > 2. Line 834 throws a TypeError: Error #1006: value is not a function. > Expected result: > No TypeError should be thrown; ObjectUtil.compare() should return zero. > The problem can be solved by renaming the isDynamicObject variable to isD= ynamic. > =20 -- This message was sent by Atlassian JIRA (v6.3.4#6332)