You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/12/30 17:45:05 UTC
[GitHub] [royale-asjs] Harbs opened a new issue #642: Extra `as` coercion
Harbs opened a new issue #642: Extra `as` coercion
URL: https://github.com/apache/royale-asjs/issues/642
In `Language` there is an `as` coercion which should not be added since there's an ignore directive before the function:
https://github.com/apache/royale-asjs/blob/27c290af0bd817f61ab509c32944bd6b8e84bc69/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as#L602
It's compiling like so:
````
if (source && Array.isArray(source)) {
var /** @type {Array} */ arr = org.apache.royale.utils.Language.as(source, Array);
return org.apache.royale.utils.Language.VectorSupport.checkIsVector(arr, typeName) ? arr : org.apache.royale.utils.Language.VectorSupport.arrayVector(arr.slice(), (arr.length) >> 0, elementType, false, null, false);
}
````
I think the reason we're getting the coercion is because it's nested in an inner function.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services