Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2305)

Unified Diff: src/d8-debug.cc

Issue 21076: Fixed the debugger compile events.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/d8.js ('k') | src/debug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8-debug.cc
===================================================================
--- src/d8-debug.cc (revision 1220)
+++ src/d8-debug.cc (working copy)
@@ -39,13 +39,19 @@
Handle<Value> data) {
HandleScope scope;
- // Currently only handles break and exception events.
- if (event != Break && event != Exception) return;
+ // Check for handled event.
+ if (event != Break && event != Exception && event != AfterCompile) {
+ return;
+ }
TryCatch try_catch;
// Print the event details.
Handle<String> details = Shell::DebugEventToText(event_data);
+ if (details->Length() == 0) {
+ // Empty string is used to signal not to process this event.
+ return;
+ }
String::Utf8Value str(details);
printf("%s\n", *str);
« no previous file with comments | « src/d8.js ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698