Index: test/cctest/test-weaksets.cc |
diff --git a/test/cctest/test-weaksets.cc b/test/cctest/test-weaksets.cc |
index a3a94789736acbfd74af5c956c8aa619eeb5e5f8..a83e16b12b6bb5a4f0b491ad3560ec4b17007e57 100644 |
--- a/test/cctest/test-weaksets.cc |
+++ b/test/cctest/test-weaksets.cc |
@@ -185,8 +185,8 @@ TEST(WeakSet_Regress2060a) { |
Factory* factory = isolate->factory(); |
Heap* heap = isolate->heap(); |
HandleScope scope(isolate); |
- Handle<JSFunction> function = factory->NewFunctionWithPrototype( |
- factory->function_string(), factory->null_value()); |
+ Handle<JSFunction> function = factory->NewFunction( |
+ factory->function_string()); |
Handle<JSObject> key = factory->NewJSObject(function); |
Handle<JSWeakSet> weakset = AllocateJSWeakSet(isolate); |
@@ -225,8 +225,8 @@ TEST(WeakSet_Regress2060b) { |
Factory* factory = isolate->factory(); |
Heap* heap = isolate->heap(); |
HandleScope scope(isolate); |
- Handle<JSFunction> function = factory->NewFunctionWithPrototype( |
- factory->function_string(), factory->null_value()); |
+ Handle<JSFunction> function = factory->NewFunction( |
+ factory->function_string()); |
// Start second old-space page so that keys land on evacuation candidate. |
Page* first_page = heap->old_pointer_space()->anchor()->next_page(); |