Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index c675fe7e0d423211669c505a2f1a7a4169a9aa31..f4768de3a9e281efd7ccd73113acdd7184c31954 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -940,8 +940,9 @@ void Genesis::HookUpGlobalObject(Handle<GlobalObject> global_object, |
static const PropertyAttributes attributes = |
static_cast<PropertyAttributes>(READ_ONLY | DONT_DELETE); |
- Runtime::DefineObjectProperty(builtins_global, factory()->global_string(), |
- global_object, attributes).Assert(); |
+ JSObject::SetOwnPropertyIgnoreAttributes(builtins_global, |
+ factory()->global_string(), |
+ global_object, attributes).Assert(); |
// Set up the reference from the global object to the builtins object. |
JSGlobalObject::cast(*global_object)->set_builtins(*builtins_global); |
TransferNamedProperties(global_object_from_snapshot, global_object); |