Index: test/cctest/test-alloc.cc |
diff --git a/test/cctest/test-alloc.cc b/test/cctest/test-alloc.cc |
index a4e4865e527a89a97a242fd8d4630b9a1dbde19c..aa4ed63b86ef8044e6b9c4573be1a0c926a2b826 100644 |
--- a/test/cctest/test-alloc.cc |
+++ b/test/cctest/test-alloc.cc |
@@ -122,8 +122,8 @@ TEST(StressJS) { |
v8::HandleScope scope(CcTest::isolate()); |
v8::Handle<v8::Context> env = v8::Context::New(CcTest::isolate()); |
env->Enter(); |
- Handle<JSFunction> function = |
- factory->NewFunction(factory->function_string(), factory->null_value()); |
+ Handle<JSFunction> function = factory->NewFunctionWithPrototype( |
+ factory->function_string(), factory->null_value()); |
// Force the creation of an initial map and set the code to |
// something empty. |
factory->NewJSObject(function); |