Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 3f568beb4a8f1404aae54804e886aa04c321ac6f..06cb2d626ca0432b57f7bc72b84e873b17b82f08 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -12553,6 +12553,18 @@ THREADED_TEST(TryCatchSourceInfo) { |
} |
+THREADED_TEST(TryCatchSourceInfoForEOSError) { |
+ LocalContext context; |
+ v8::HandleScope scope(context->GetIsolate()); |
+ v8::TryCatch try_catch; |
+ v8::Script::Compile(v8_str("!\n")); |
+ CHECK(try_catch.HasCaught()); |
+ v8::Handle<v8::Message> message = try_catch.Message(); |
+ CHECK_EQ(1, message->GetLineNumber()); |
+ CHECK_EQ(0, message->GetStartColumn()); |
+} |
+ |
+ |
THREADED_TEST(CompilationCache) { |
LocalContext context; |
v8::HandleScope scope(context->GetIsolate()); |