| Index: src/hashmap.cc
|
| ===================================================================
|
| --- src/hashmap.cc (revision 2520)
|
| +++ src/hashmap.cc (working copy)
|
| @@ -194,7 +194,10 @@
|
| void HashMap::Initialize(uint32_t capacity) {
|
| ASSERT(IsPowerOf2(capacity));
|
| map_ = reinterpret_cast<Entry*>(allocator_->New(capacity * sizeof(Entry)));
|
| - if (map_ == NULL) V8::FatalProcessOutOfMemory("HashMap::Initialize");
|
| + if (map_ == NULL) {
|
| + V8::FatalProcessOutOfMemory("HashMap::Initialize");
|
| + return;
|
| + }
|
| capacity_ = capacity;
|
| Clear();
|
| }
|
|
|