Bug 1137180 - Allow unboxed objects to be extended with new properties, r=jandem.

This commit is contained in:
Brian Hackett
2015-03-15 14:26:42 -06:00
parent e35e29ccdb
commit 096b0b0095
21 changed files with 1008 additions and 447 deletions

View File

@@ -2931,7 +2931,7 @@ js::LookupPropertyPure(ExclusiveContext *cx, JSObject *obj, jsid id, JSObject **
// are not handled here.
if (!obj->is<UnboxedPlainObject>())
return false;
if (obj->as<UnboxedPlainObject>().layout().lookup(id)) {
if (obj->as<UnboxedPlainObject>().containsUnboxedOrExpandoProperty(cx, id)) {
*objp = obj;
MarkNonNativePropertyFound<NoGC>(propp);
return true;