That’s beyond me. One day maybe I’ll be up to fiddling with the compiler like 
that, but I’m not there yet…

I’d think nothing needs to be done on the SWF side (unless we need to support 
debugger; in client code unwrapped). Right now, here’s what I have:

        COMPILE::SWF
        {
            if(condition)
                enterDebugger();
        }
        COMPILE::JS
        {
            if(goog.DEBUG && condition)
                debugger;
        }

The COMPILE::SWF block should theoretically work as-is.

> On Jul 16, 2017, at 7:22 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:
> 
> If it were a variable or function, it could be defined somewhere like that.
> It's a statement, though, so it needs to be added to where Falcon creates
> the AST from the ActionScript code. Then, it also needs to emit the
> statement as JS in FalconJX. On the SWF side, it should be translated to
> appropriate bytecode to call enterDebugger().
> 
> - Josh
> 
> On Jul 16, 2017 8:56 AM, "Harbs" <harbs.li...@gmail.com> wrote:
> 
>> What needs to be modified? Does it need to be added to NativeJSType enums?
>> Somewhere else?
>> 
>> I’m really not clear on when things to be added to that and when they need
>> to be in typedefs.
>> 
>>> On Jul 16, 2017, at 6:51 PM, Harbs <harbs.li...@gmail.com> wrote:
>>> 
>>>> The compiler needs to be modified to support the debugger statement.
>> 
>> 

Reply via email to