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