| Index: src/d8.cc
|
| diff --git a/src/d8.cc b/src/d8.cc
|
| index b57e3907ce9eee32940038e6aaf9d7dd2935cadf..385aa03c91d379c4008332c3cf4f905a04c20342 100644
|
| --- a/src/d8.cc
|
| +++ b/src/d8.cc
|
| @@ -144,6 +144,11 @@ class DumbLineEditor: public LineEditor {
|
|
|
| Handle<String> DumbLineEditor::Prompt(const char* prompt) {
|
| printf("%s", prompt);
|
| +#if defined(__native_client__)
|
| + // Native Client libc is used to being embedded in Chrome and
|
| + // has trouble recognizing when to flush.
|
| + fflush(stdout);
|
| +#endif
|
| return Shell::ReadFromStdin(isolate_);
|
| }
|
|
|
|
|