Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 027c0d6c19ef32df4078bef0838d67c2b3bf903d..18025e14a076210b454a8cc4bcc2e7a3dd9d8f47 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -17513,37 +17513,4 @@ class ThreadInterruptTest { |
THREADED_TEST(SemaphoreInterruption) { |
ThreadInterruptTest().RunTest(); |
} |
- |
- |
-TEST(Utf8ValueException) { |
- v8::HandleScope scope; |
- LocalContext context; |
- |
- Handle<Value> object = CompileRun( |
- "var obj = { toString : function() { throw 'deadbeef'; } }; obj"); |
- |
- { v8::TryCatch try_catch; |
- v8::String::Utf8Value utf8_value(object); |
- CHECK(try_catch.HasCaught()); |
- CHECK_EQ("deadbeef", *v8::String::Utf8Value(try_catch.Exception())); |
- } |
- |
- { v8::TryCatch try_catch; |
- v8::String::AsciiValue ascii_value(object); |
- CHECK(try_catch.HasCaught()); |
- CHECK_EQ("deadbeef", *v8::String::Utf8Value(try_catch.Exception())); |
- } |
- |
- { v8::TryCatch try_catch; |
- v8::String::Value value(object); |
- CHECK(try_catch.HasCaught()); |
- CHECK_EQ("deadbeef", *v8::String::Utf8Value(try_catch.Exception())); |
- } |
- |
- // It should work fine without any TryCatch. |
- v8::String::Utf8Value utf8_value(object); |
- v8::String::AsciiValue ascii_value(object); |
- v8::String::Value value(object); |
-} |
- |
#endif // WIN32 |