diff options
Diffstat (limited to 'deps/v8/src/d8-readline.cc')
-rw-r--r-- | deps/v8/src/d8-readline.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/deps/v8/src/d8-readline.cc b/deps/v8/src/d8-readline.cc index 298518d72..0226f31c0 100644 --- a/deps/v8/src/d8-readline.cc +++ b/deps/v8/src/d8-readline.cc @@ -150,7 +150,7 @@ char* ReadLineEditor::CompletionGenerator(const char* text, int state) { static Persistent<Array> current_completions; Isolate* isolate = read_line_editor.isolate_; Locker lock(isolate); - HandleScope scope; + HandleScope scope(isolate); Handle<Array> completions; if (state == 0) { Local<String> full_text = String::New(rl_line_buffer, rl_point); @@ -167,8 +167,7 @@ char* ReadLineEditor::CompletionGenerator(const char* text, int state) { String::Utf8Value str(str_obj); return strdup(*str); } else { - current_completions.Dispose(isolate); - current_completions.Clear(); + current_completions.Reset(); return NULL; } } |