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