Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 0ffb0c3c281c6482022520df4868b5e1e5b871da..0eb76629049bf88c71b5ba07db30082f17362997 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -819,8 +819,8 @@ void Genesis::CreateRoots() { |
// Allocate the message listeners object. |
{ |
- v8::NeanderArray listeners(isolate()); |
- native_context()->set_message_listeners(*listeners.value()); |
+ Handle<TemplateList> list = TemplateList::New(isolate(), 1); |
+ native_context()->set_message_listeners(*list); |
} |
} |