diff options
author | Leon Clarke <leonclarke@google.com> | 2010-01-27 16:31:12 +0000 |
---|---|---|
committer | Leon Clarke <leonclarke@google.com> | 2010-01-27 16:31:12 +0000 |
commit | eab96aab0834f21954b5d6aa6366bcfb348ed811 (patch) | |
tree | a057ce0ab4f5fa5f37a3f468c60f750488908209 /samples | |
parent | 888f6729be6a6f6fbe246cb5a9f122e2dbe455b7 (diff) | |
download | v8-eab96aab0834f21954b5d6aa6366bcfb348ed811.tar.gz |
Revert "Pull from svn bleeding_edge@3716"
This reverts commit 888f6729be6a6f6fbe246cb5a9f122e2dbe455b7.
(Waiting until v8 issue 554101 is in v8 rather than patching it straight into
android)
Diffstat (limited to 'samples')
-rw-r--r-- | samples/lineprocessor.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc index 505dabf9..2e8092ee 100644 --- a/samples/lineprocessor.cc +++ b/samples/lineprocessor.cc @@ -134,7 +134,7 @@ int RunMain(int argc, char* argv[]) { int port_number = -1; bool wait_for_connection = false; - bool support_callback = false; + bool support_callback = true; MainCycleType cycle_type = CycleInCpp; for (int i = 1; i < argc; i++) { @@ -144,7 +144,9 @@ int RunMain(int argc, char* argv[]) { // alone JavaScript engines. continue; } else if (strcmp(str, "--callback") == 0) { - support_callback = true; + // TODO(548): implement this. + printf("Error: debugger agent callback is not supported yet.\n"); + return 1; } else if (strcmp(str, "--wait-for-connection") == 0) { wait_for_connection = true; } else if (strcmp(str, "--main-cycle-in-cpp") == 0) { @@ -408,7 +410,7 @@ v8::Handle<v8::String> ReadLine() { char* res; { v8::Unlocker unlocker; - res = fgets(buffer, kBufferSize, stdin); + res = fgets(buffer, buffer_size, stdin); } if (res == NULL) { v8::Handle<v8::Primitive> t = v8::Undefined(); |