After recent API changes, d8 will fail to build when passing
"console=readline". This patch makes d8 work with readline again.
R=bmeurer@chromium.org
Review URL: https://codereview.chromium.org/
125043006
Patch from Adrian Perez de Castro <aperez@igalia.com>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18457
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
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);