Index: test/cctest/test-strings.cc |
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc |
index b55780182bf7e5af22cd889b23ebed15e7c3dde7..535a6def59bfee6f80f839faab3d3e76bd23d2f8 100644 |
--- a/test/cctest/test-strings.cc |
+++ b/test/cctest/test-strings.cc |
@@ -1398,6 +1398,7 @@ TEST(InvalidExternalString) { |
static const int invalid = String::kMaxLength + 1; \ |
HandleScope scope(isolate); \ |
Vector<TYPE> dummy = Vector<TYPE>::New(invalid); \ |
+ memset(dummy.start(), 0x0, dummy.length() * sizeof(TYPE)); \ |
CHECK(isolate->factory()->FUN(Vector<const TYPE>::cast(dummy)).is_null()); \ |
memset(dummy.start(), 0x20, dummy.length() * sizeof(TYPE)); \ |
CHECK(isolate->has_pending_exception()); \ |