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