fix and update debug-debugger.js
added `switch` statement is missing `break`s R=yangguo@chromium.org Review URL: https://codereview.chromium.org/494303004 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23441 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
c49aa16fdf
commit
327d843d59
1
AUTHORS
1
AUTHORS
@ -56,6 +56,7 @@ Patrick Gansterer <paroga@paroga.com>
|
||||
Peter Varga <pvarga@inf.u-szeged.hu>
|
||||
Rafal Krypa <rafal@krypa.net>
|
||||
Rajeev R Krithivasan <rkrithiv@codeaurora.org>
|
||||
Refael Ackermann <refack@gmail.com>
|
||||
Rene Rebe <rene@exactcode.de>
|
||||
Robert Mustacchi <rm@fingolfin.org>
|
||||
Rodolph Perfetta <rodolph.perfetta@arm.com>
|
||||
|
@ -21,7 +21,8 @@ Debug.DebugEvent = { Break: 1,
|
||||
AfterCompile: 5,
|
||||
CompileError: 6,
|
||||
PromiseEvent: 7,
|
||||
AsyncTaskEvent: 8 };
|
||||
AsyncTaskEvent: 8,
|
||||
BreakForCommand: 9 };
|
||||
|
||||
// Types of exceptions that can be broken upon.
|
||||
Debug.ExceptionBreak = { Caught : 0,
|
||||
@ -1172,10 +1173,13 @@ CompileEvent.prototype.toJSONProtocol = function() {
|
||||
switch (this.type_) {
|
||||
case Debug.DebugEvent.BeforeCompile:
|
||||
o.event = "beforeCompile";
|
||||
break;
|
||||
case Debug.DebugEvent.AfterCompile:
|
||||
o.event = "afterCompile";
|
||||
break;
|
||||
case Debug.DebugEvent.CompileError:
|
||||
o.event = "compileError";
|
||||
break;
|
||||
}
|
||||
o.body = {};
|
||||
o.body.script = this.script_;
|
||||
|
Loading…
Reference in New Issue
Block a user