Index: tools/parser-shell.cc |
diff --git a/tools/parser-shell.cc b/tools/parser-shell.cc |
index 2d95918a33d4b8aca1210c8d11960e20283ee00c..4acdf7c034c778b72909e913878410afa09dbf2e 100644 |
--- a/tools/parser-shell.cc |
+++ b/tools/parser-shell.cc |
@@ -128,8 +128,9 @@ int main(int argc, char* argv[]) { |
fnames.push_back(std::string(argv[i])); |
} |
} |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
+ v8::Isolate* isolate = v8::Isolate::New(); |
{ |
+ v8::Isolate::Scope isolate_scope(isolate); |
v8::HandleScope handle_scope(isolate); |
v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate); |
v8::Local<v8::Context> context = v8::Context::New(isolate, NULL, global); |