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
--
--
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.