$OpenBSD$ index 4e09cd9..8e4f0fd 100644 --- js/src/vm/Shape.cpp.orig Fri Feb 20 15:40:37 2015 +++ js/src/vm/Shape.cpp Fri Feb 20 15:40:37 2015 @@ -891,6 +891,8 @@ JSObject::putProperty(typename ExecutionModeTraits::ExclusiveContextType c else shape->base_ = nbase; + JS_ASSERT_IF(attrs & (JSPROP_GETTER | JSPROP_SETTER), attrs & JSPROP_SHARED); + shape->setSlot(slot); shape->attrs = uint8_t(attrs); shape->flags = flags | Shape::IN_DICTIONARY; @@ -963,6 +965,7 @@ JSObject::changeProperty(typename ExecutionModeTraits::ExclusiveContextTyp JS_ASSERT(obj->nativeContainsPure(shape)); attrs |= shape->attrs & mask; + JS_ASSERT_IF(attrs & (JSPROP_GETTER | JSPROP_SETTER), attrs & JSPROP_SHARED); /* Allow only shared (slotless) => unshared (slotful) transition. */ JS_ASSERT(!((attrs ^ shape->attrs) & JSPROP_SHARED) ||