This is an automated email from the ASF dual-hosted git repository.

gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 4f1f5eaa9d27c64e012889853b77771b69cfe5a5
Author: greg-dove <[email protected]>
AuthorDate: Wed Apr 15 20:10:18 2020 +1200

    Fix for Boolean primitive type specifically appearing as a Function and not 
a class
---
 .../Language/src/main/royale/org/apache/royale/utils/Language.as        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
 
b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
index 086d772..2735eec 100644
--- 
a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
+++ 
b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
@@ -544,7 +544,7 @@ package org.apache.royale.utils
                             return typeof v == 'function'
                                     && v.prototype
                                     && v.prototype['constructor'] == v
-                                    && (v.prototype.ROYALE_CLASS_INFO || 
v.constructor == _synthType || 
Object.getOwnPropertyNames(v).join().replace(excludeName,'') != isFunc )
+                                    && (v.prototype.ROYALE_CLASS_INFO || 
v.constructor == _synthType || v == Boolean || 
Object.getOwnPropertyNames(v).join().replace(excludeName,'') != isFunc )
                         };
                         snythTypeInst = typeStore['Class'] = new 
_synthType('Class',
                                 function():void{throw new TypeError('Error 
#1115: Class is not a constructor.')},

Reply via email to