Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 28526743341efef867af9977bc3f26b10e297897..000038f9c55729bd08f369ead1b127b918daa8e2 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1576,8 +1576,9 @@ Handle<GlobalObject> Factory::NewGlobalObject(Handle<JSFunction> constructor) { |
Handle<DescriptorArray> descs(map->instance_descriptors()); |
for (int i = 0; i < map->NumberOfOwnDescriptors(); i++) { |
PropertyDetails details = descs->GetDetails(i); |
- DCHECK(details.type() == CALLBACKS); // Only accessors are expected. |
- PropertyDetails d(details.attributes(), CALLBACKS, i + 1); |
+ // Only accessors are expected. |
+ DCHECK_EQ(ACCESSOR_CONSTANT, details.type()); |
+ PropertyDetails d(details.attributes(), ACCESSOR_CONSTANT, i + 1); |
Handle<Name> name(descs->GetKey(i)); |
Handle<Object> value(descs->GetCallbacksObject(i), isolate()); |
Handle<PropertyCell> cell = NewPropertyCell(value); |