| Index: samples/lineprocessor.cc
|
| diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc
|
| index b4ffb44e80aba086a6dedd73121b8ddfb6ada991..35d1f6b79904522c2e1d2626aec5725f4f2a6ce6 100644
|
| --- a/samples/lineprocessor.cc
|
| +++ b/samples/lineprocessor.cc
|
| @@ -417,7 +417,8 @@ void Print(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| // function is called. Reads a string from standard input and returns.
|
| void ReadLine(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| if (args.Length() > 0) {
|
| - v8::ThrowException(v8::String::New("Unexpected arguments"));
|
| + v8::ThrowException(args.GetIsolate(),
|
| + v8::String::New("Unexpected arguments"));
|
| return;
|
| }
|
| args.GetReturnValue().Set(ReadLine());
|
|
|