Index: src/d8-readline.cc |
diff --git a/src/d8-readline.cc b/src/d8-readline.cc |
index 679c5366f21854028ac35034fd9fdfd3f7441fb7..ed7721c5131bd818bf70db18b1b9f065f21fcb0e 100644 |
--- a/src/d8-readline.cc |
+++ b/src/d8-readline.cc |
@@ -91,7 +91,11 @@ bool ReadLineEditor::Close() { |
Handle<String> ReadLineEditor::Prompt(const char* prompt) { |
- char* result = readline(prompt); |
+ char* result = NULL; |
+ { // Release lock for blocking input. |
+ Unlocker unlock(Isolate::GetCurrent()); |
+ result = readline(prompt); |
+ } |
if (result != NULL) { |
AddHistory(result); |
} else { |