Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 71882859c0eea5ed03c13413945af35a6d98ce45..c8506dc8db0a15d7a424c0c39cc8dc20f93dc77b 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1723,9 +1723,9 @@ Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, |
isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject); |
} |
- |
-Handle<JSObject> Factory::NewJSObjectWithNullProto() { |
- Handle<JSObject> result = NewJSObject(isolate()->object_function()); |
+Handle<JSObject> Factory::NewJSObjectWithNullProto(PretenureFlag pretenure) { |
+ Handle<JSObject> result = |
+ NewJSObject(isolate()->object_function(), pretenure); |
Handle<Map> new_map = |
Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto"); |
Map::SetPrototype(new_map, null_value()); |