On 3/7/17, 12:36 PM, "Harbs" <harbs.li...@gmail.com> wrote:

>ActionScript supports different RegExp flags than Javascript suports.
>
>ActionScript has: g, i, s, m and x
>Javascript has: g, i, m, u and y
>
>So we have a mismatch between “s” and “x” on one side and “u” and “y” on
>the other.
>
>Currently, ActionScript flags compile to Javascript, but the google
>compiler complains that they are not valid.
>
>What’s the “correct” way to deal with this incompatibility?

Don't use those flags?

I'm not sure where those flags get used. One option may be to map RegExp
to an org.apache.flex.utils.RegExp that we would have to wrate that either
subclasses RegExp or wraps it.  Another may be to map certain APIs on
RegExp to org.apache.flex.utils.Language.

-Alex

Reply via email to