Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 85e7a438613bfb89d91f626a7eca2bc39626c2f4..6e6d893403ce5bbe0c67fef515d3c6121137794b 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1498,6 +1498,14 @@ Handle<JSObject> Factory::NewJSObjectWithMemento( |
JSObject); |
} |
+Handle<JSObject> Factory::NewJSObjectWithNullProto() { |
+ Handle<JSObject> result = NewJSObject(isolate()->object_function()); |
+ Handle<Map> new_map = |
+ Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto"); |
+ Map::SetPrototype(new_map, null_value()); |
+ JSObject::MigrateToMap(result, new_map); |
+ return result; |
+} |
Handle<JSModule> Factory::NewJSModule(Handle<Context> context, |
Handle<ScopeInfo> scope_info) { |