| Index: samples/process.cc
|
| diff --git a/samples/process.cc b/samples/process.cc
|
| index 37b4d3920897b1a613d8fb8a6d7e10568a11e07a..7cfbc9ee1e96c0d572d279abfd526e7f3708db28 100644
|
| --- a/samples/process.cc
|
| +++ b/samples/process.cc
|
| @@ -651,7 +651,8 @@ int main(int argc, char* argv[]) {
|
| fprintf(stderr, "No script was specified.\n");
|
| return 1;
|
| }
|
| - Isolate* isolate = Isolate::GetCurrent();
|
| + Isolate* isolate = Isolate::New();
|
| + Isolate::Scope isolate_scope(isolate);
|
| HandleScope scope(isolate);
|
| Handle<String> source = ReadFile(isolate, file);
|
| if (source.IsEmpty()) {
|
|
|