flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tamás Nepusz (JIRA) <j...@apache.org>
Subject [jira] [Updated] (FLEX-34579) ObjectUtil.compare() throws TypeError: Error #1006: value is not a function
Date Mon, 06 Oct 2014 12:07:33 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tamás Nepusz updated FLEX-34579:
--------------------------------
    Description: 
Steps to reproduce:

1. Call ObjectUtil.compare() with two identical objects that are not reference-equivalent;
this is required to ensure that the execution hits the following line (line 834) in ObjectUtil:

var isDynamicObject:Boolean = 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 isDynamic.

 

  was:
Steps to reproduce:

1. Call ObjectUtil with two identical objects that are not reference-equivalent; this is required
to ensure that the execution hits the following line (line 834) in ObjectUtil:

var isDynamicObject:Boolean = isDynamicObject(a);

2. Line 834 throws a TypeError: Error #1006: value is not a function.

 


> ObjectUtil.compare() throws TypeError: Error #1006: value is not a function
> ---------------------------------------------------------------------------
>
>                 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 platforms
>            Reporter: Tamás Nepusz
>              Labels: EasyFix
>
> Steps to reproduce:
> 1. Call ObjectUtil.compare() with two identical objects that are not reference-equivalent;
this is required to ensure that the execution hits the following line (line 834) in ObjectUtil:
> var isDynamicObject:Boolean = 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 isDynamic.
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message