| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index c8dd07ff4f986c77285ee5bb900090bc523464ac..8058bffc7939dd97abbf3511cf6148047e2a3f50 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -11715,4 +11715,11 @@ TEST(RegExp) {
|
|
|
| context->Global()->Set(v8_str("re"), re);
|
| ExpectTrue("re.test('FoobarbaZ')");
|
| +
|
| + v8::TryCatch try_catch;
|
| + re = v8::RegExp::New(v8_str("foo["), v8::RegExp::kNone);
|
| + CHECK(re.IsEmpty());
|
| + CHECK(try_catch.HasCaught());
|
| + context->Global()->Set(v8_str("ex"), try_catch.Exception());
|
| + ExpectTrue("ex instanceof SyntaxError");
|
| }
|
|
|