Index: test/mjsunit/regress/regress-cntl-descriptors-enum.js |
diff --git a/test/mjsunit/regress/regress-2249.js b/test/mjsunit/regress/regress-cntl-descriptors-enum.js |
similarity index 85% |
copy from test/mjsunit/regress/regress-2249.js |
copy to test/mjsunit/regress/regress-cntl-descriptors-enum.js |
index 07d687d8191ad469d09cbd86cd7ea12797a735d3..ee72fafc8a7c67f2b1ab6cc22a734ef8033a5697 100644 |
--- a/test/mjsunit/regress/regress-2249.js |
+++ b/test/mjsunit/regress/regress-cntl-descriptors-enum.js |
@@ -25,9 +25,22 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --gc-interval=10 --stress-compaction |
+// Flags: --allow-natives-syntax --expose-gc |
+ |
+DontEnum = 2; |
var o = {}; |
-o[Math.pow(2,30)-1] = 0; |
-o[Math.pow(2,31)-1] = 0; |
-o[1] = 0; |
+%SetProperty(o, "a", 0, DontEnum); |
+ |
+var o2 = {}; |
+%SetProperty(o2, "a", 0, DontEnum); |
+ |
+assertTrue(%HaveSameMap(o, o2)); |
+ |
+o.y = 2; |
+ |
+for (var v in o) { print(v); } |
+o = {}; |
+gc(); |
+ |
+for (var v in o2) { print(v); } |