Index: test/cctest/test-weakmaps.cc |
diff --git a/test/cctest/test-weakmaps.cc b/test/cctest/test-weakmaps.cc |
index 14a5e020a140e919af267386aa79c8f104052b98..369dae5e999f91205b5e877283cd318b9e09ee6d 100644 |
--- a/test/cctest/test-weakmaps.cc |
+++ b/test/cctest/test-weakmaps.cc |
@@ -185,8 +185,8 @@ TEST(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<JSWeakMap> weakmap = AllocateJSWeakMap(isolate); |
@@ -225,8 +225,8 @@ TEST(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(); |