Index: samples/lineprocessor.cc |
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc |
index 39e5159ef62b0b15d98f8888f6cd00a154882c4f..5068c885e9f042312e992461385b99898473584e 100644 |
--- a/samples/lineprocessor.cc |
+++ b/samples/lineprocessor.cc |
@@ -296,7 +296,7 @@ bool RunCppCycle(v8::Handle<v8::Script> script, |
v8::HandleScope handle_scope(isolate); |
v8::Handle<v8::String> input_line = ReadLine(); |
- if (input_line == v8::Undefined()) { |
+ if (input_line == v8::Undefined(isolate)) { |
continue; |
} |
@@ -436,7 +436,7 @@ v8::Handle<v8::String> ReadLine() { |
res = fgets(buffer, kBufferSize, stdin); |
} |
if (res == NULL) { |
- v8::Handle<v8::Primitive> t = v8::Undefined(); |
+ v8::Handle<v8::Primitive> t = v8::Undefined(v8::Isolate::GetCurrent()); |
return v8::Handle<v8::String>::Cast(t); |
} |
// Remove newline char |