Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index f4768de3a9e281efd7ccd73113acdd7184c31954..c675fe7e0d423211669c505a2f1a7a4169a9aa31 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -940,9 +940,8 @@ |
static const PropertyAttributes attributes = |
static_cast<PropertyAttributes>(READ_ONLY | DONT_DELETE); |
- JSObject::SetOwnPropertyIgnoreAttributes(builtins_global, |
- factory()->global_string(), |
- global_object, attributes).Assert(); |
+ Runtime::DefineObjectProperty(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); |