| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 6bea3eaefee603ed7bc02a56be251082ba6ad27a..ab864cbe213667d1a26a23f83d829e0335225104 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -24064,8 +24064,7 @@
|
| script->Run(context).ToLocalChecked()->Int32Value(context).FromJust());
|
| }
|
|
|
| -
|
| -TEST(InvalidCacheData) {
|
| +TEST(InvalidParserCacheData) {
|
| v8::V8::Initialize();
|
| v8::HandleScope scope(CcTest::isolate());
|
| LocalContext context;
|
| @@ -24073,6 +24072,12 @@
|
| // Cached parser data is not consumed while parsing eagerly.
|
| TestInvalidCacheData(v8::ScriptCompiler::kConsumeParserCache);
|
| }
|
| +}
|
| +
|
| +TEST(InvalidCodeCacheData) {
|
| + v8::V8::Initialize();
|
| + v8::HandleScope scope(CcTest::isolate());
|
| + LocalContext context;
|
| TestInvalidCacheData(v8::ScriptCompiler::kConsumeCodeCache);
|
| }
|
|
|
|
|