Index: test/mjsunit/regress/regress-convert-enum2.js |
diff --git a/test/mjsunit/regress/regress-2249.js b/test/mjsunit/regress/regress-convert-enum2.js |
similarity index 88% |
copy from test/mjsunit/regress/regress-2249.js |
copy to test/mjsunit/regress/regress-convert-enum2.js |
index 07d687d8191ad469d09cbd86cd7ea12797a735d3..cdc7fbe2b68ee20cb77dd020e54ec94f43a14f61 100644 |
--- a/test/mjsunit/regress/regress-2249.js |
+++ b/test/mjsunit/regress/regress-convert-enum2.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 |
- |
var o = {}; |
-o[Math.pow(2,30)-1] = 0; |
-o[Math.pow(2,31)-1] = 0; |
-o[1] = 0; |
+o.a = 1; |
+o.b = function() { return 1; }; |
+o.d = 2; |
+ |
+for (var x in o) { } |
+ |
+var o1 = {}; |
+o1.a = 1; |
+o1.b = 10; |
+o1.c = 20; |
+ |
+var keys = ["a", "b", "c"]; |
+ |
+var i = 0; |
+for (var y in o1) { |
+ assertEquals(keys[i], y); |
+ i += 1; |
+} |