Index: test/cctest/test-strings.cc |
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc |
index d1f23f75a6bf6b0a3f9de562015a6bef81463b73..c77fc36a05d181a3b219bcd27663effc1b6f3092 100644 |
--- a/test/cctest/test-strings.cc |
+++ b/test/cctest/test-strings.cc |
@@ -1445,6 +1445,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()); \ |