Index: src/d8-readline.cc |
diff --git a/src/d8-readline.cc b/src/d8-readline.cc |
index 15b1361727960fbbfedf3d8bf7fcbdbf726d3f57..42cb0c5c5c4b6176ad243e9b904a5be37e3259a7 100644 |
--- a/src/d8-readline.cc |
+++ b/src/d8-readline.cc |
@@ -163,7 +163,7 @@ char* ReadLineEditor::CompletionGenerator(const char* text, int state) { |
completions = Local<Array>::New(isolate, current_completions); |
} |
if (current_index < completions->Length()) { |
- Handle<Integer> index = Integer::New(current_index); |
+ Handle<Integer> index = Integer::New(isolate, current_index); |
Handle<Value> str_obj = completions->Get(index); |
current_index++; |
String::Utf8Value str(str_obj); |