Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 0be96ea46c5e6a8cab680bb321b842dfdab3bcd5..2f00067fb3c2270cc6827898063281c647664dec 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -599,6 +599,8 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) { |
Handle<Map> map = Map::Copy(handle(object_function_prototype->map()), |
"EmptyObjectPrototype"); |
map->set_is_prototype_map(true); |
+ // Ban re-setting Object.prototype.__proto__ to prevent Proxy security bug |
+ map->set_immutable_proto(true); |
object_function_prototype->set_map(*map); |
native_context()->set_initial_object_prototype(*object_function_prototype); |