Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 289d0dc9832fa66d32cdb0cc024d9d518a8ca7df..5dd11700021c3f1d77d9eaac8a675a41bfa6baad 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -1242,6 +1242,7 @@ TEST(Bug3628) { |
v8::Local<v8::UnboundScript> script = v8::ScriptCompiler::CompileUnbound( |
isolate1, &source, v8::ScriptCompiler::kProduceCodeCache); |
const v8::ScriptCompiler::CachedData* data = source.GetCachedData(); |
+ CHECK(data); |
// Persist cached data. |
uint8_t* buffer = NewArray<uint8_t>(data->length); |
MemCopy(buffer, data->data, data->length); |