On Wed, Apr 15, 2015 at 5:12 PM, Mihail Slavchev
<[email protected]> wrote:
> Hi,
>
> I was investigating an issue with the V8 debugger when I stumbled on an
> unexpected program flow in Debug::NotifyMessageHandler method. More
> precisely, the current method implementation contains the following switch
> statement.
>
>
>   switch (event) {
>     case v8::Break:
>     case v8::BreakForCommand:
>       sendEventMessage = !auto_continue;
>       break;
>     case v8::Exception:
>       sendEventMessage = true;
>       break;
>     case v8::BeforeCompile:
>       break;
>     case v8::AfterCompile:
>       sendEventMessage = true;
>       break;
>     case v8::NewFunction:
>       break;
>     default:
>       UNREACHABLE();
>   }
>
> Because my JavaScript code uses promises Debug::NotifyMessageHandler method
> is called with PromiseEvent and AsyncTaskEvent arguments which are not
> handled with the above mentioned switch statement. Hence, the program flow
> goes through the default clause and UNREACHABLE() method is called.
>
> Is this the expected program flow?
>
> TIA,
> Mihail

It looks like an oversight to me.  I would file a bug at
https://code.google.com/p/v8/issues.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to