Index: test/mjsunit/object-define-property.js |
diff --git a/test/mjsunit/object-define-property.js b/test/mjsunit/object-define-property.js |
index e08686ec52d9cb274bda67d402e3ebcd181270f9..ee6083a8995f84c8313da480f511c59adaf3a675 100644 |
--- a/test/mjsunit/object-define-property.js |
+++ b/test/mjsunit/object-define-property.js |
@@ -1045,3 +1045,12 @@ Object.defineProperty(o, 'p', |
testDefineProperty(o, 'p', |
{ enumerable : false, configurable : false }, |
{ get: undefined, set: setter1, enumerable : false, configurable : false }); |
+ |
+ |
+// Regression test: Ensure that growing dictionaries are not ignored. |
+o = {}; |
+for (var i = 0; i < 1000; i++) { |
+ // Non-enumerable property forces dictionary mode. |
+ Object.defineProperty(o, i, {value: i, enumerable: false}); |
+} |
+assertEquals(999, o[999]); |