Index: samples/lineprocessor.cc |
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc |
index b4ffb44e80aba086a6dedd73121b8ddfb6ada991..39e5159ef62b0b15d98f8888f6cd00a154882c4f 100644 |
--- a/samples/lineprocessor.cc |
+++ b/samples/lineprocessor.cc |
@@ -417,7 +417,7 @@ 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")); |
+ args.GetIsolate()->ThrowException(v8::String::New("Unexpected arguments")); |
return; |
} |
args.GetReturnValue().Set(ReadLine()); |