| Index: test/cctest/test-api.cc
|
| ===================================================================
|
| --- test/cctest/test-api.cc (revision 915)
|
| +++ test/cctest/test-api.cc (working copy)
|
| @@ -3008,6 +3008,16 @@
|
| }
|
|
|
|
|
| +TEST(CompilationErrorUsingTryCatchHandler) {
|
| + v8::HandleScope scope;
|
| + LocalContext env;
|
| + v8::TryCatch try_catch;
|
| + Script::Compile(v8_str("This doesn't &*&@#$&*^ compile."));
|
| + CHECK_NE(NULL, *try_catch.Exception());
|
| + CHECK(try_catch.HasCaught());
|
| +}
|
| +
|
| +
|
| // SecurityHandler can't be run twice
|
| TEST(SecurityHandler) {
|
| v8::HandleScope scope0;
|
|
|