Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 318166536e7087c75af15b871fb3c09ab002c2de..a973bb9c534e466bf8fac0b1795e4bd183df826b 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -267,8 +267,8 @@ TEST(GarbageCollection) { |
{ |
HandleScope inner_scope(isolate); |
// Allocate a function and keep it in global object's property. |
- Handle<JSFunction> function = |
- factory->NewFunction(name, factory->undefined_value()); |
+ Handle<JSFunction> function = factory->NewFunctionWithPrototype( |
+ name, factory->undefined_value()); |
Handle<Map> initial_map = |
factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
function->set_initial_map(*initial_map); |
@@ -625,8 +625,8 @@ TEST(FunctionAllocation) { |
v8::HandleScope sc(CcTest::isolate()); |
Handle<String> name = factory->InternalizeUtf8String("theFunction"); |
- Handle<JSFunction> function = |
- factory->NewFunction(name, factory->undefined_value()); |
+ Handle<JSFunction> function = factory->NewFunctionWithPrototype( |
+ name, factory->undefined_value()); |
Handle<Map> initial_map = |
factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
function->set_initial_map(*initial_map); |
@@ -724,8 +724,8 @@ TEST(JSObjectMaps) { |
v8::HandleScope sc(CcTest::isolate()); |
Handle<String> name = factory->InternalizeUtf8String("theFunction"); |
- Handle<JSFunction> function = |
- factory->NewFunction(name, factory->undefined_value()); |
+ Handle<JSFunction> function = factory->NewFunctionWithPrototype( |
+ name, factory->undefined_value()); |
Handle<Map> initial_map = |
factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
function->set_initial_map(*initial_map); |