Index: test/cctest/test-mark-compact.cc |
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc |
index 9fd73ac1f31b031204c3520daf68954fa1b15451..b2943e018a14d478b7c986953e29d45ba4e68158 100644 |
--- a/test/cctest/test-mark-compact.cc |
+++ b/test/cctest/test-mark-compact.cc |
@@ -159,7 +159,7 @@ TEST(MarkCompactCollector) { |
{ HandleScope scope(isolate); |
// allocate a garbage |
Handle<String> func_name = factory->InternalizeUtf8String("theFunction"); |
- Handle<JSFunction> function = factory->NewFunction( |
+ Handle<JSFunction> function = factory->NewFunctionWithPrototype( |
func_name, factory->undefined_value()); |
Handle<Map> initial_map = factory->NewMap( |
JS_OBJECT_TYPE, JSObject::kHeaderSize); |