Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 5c8052b1c912334953b93c2b9258426796702832..a23ca7335ed75ed5aee4d8550b8728fec1d69d9f 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2532,12 +2532,7 @@ void Heap::CreateApiObjects() { |
// appears to be no benefit for optimize this case. |
new_neander_map->set_elements_kind(TERMINAL_FAST_ELEMENTS_KIND); |
set_neander_map(*new_neander_map); |
- |
- Handle<JSObject> listeners = factory->NewNeanderObject(); |
- Handle<FixedArray> elements = factory->NewFixedArray(2); |
- elements->set(0, Smi::FromInt(0)); |
- listeners->set_elements(*elements); |
- set_message_listeners(*listeners); |
+ set_message_listeners(*TemplateList::New(isolate(), 2)); |
} |