Index: test/mjsunit/allocation-site-info.js |
diff --git a/test/mjsunit/allocation-site-info.js b/test/mjsunit/allocation-site-info.js |
index 9984f5bd2cb123f791170dcb9d7f6ab76771901f..8fa4941033bc8461a719c6109e7d6e6fb01ffa63 100644 |
--- a/test/mjsunit/allocation-site-info.js |
+++ b/test/mjsunit/allocation-site-info.js |
@@ -297,6 +297,10 @@ obj = newarraycase_onearg(10, 5); |
assertKind(elements_kind.fast_double, obj); |
obj = newarraycase_onearg(0, 5); |
assertKind(elements_kind.fast_double, obj); |
+// Now pass a length that forces the dictionary path. |
+obj = newarraycase_onearg(100000, 5); |
+assertKind(elements_kind.dictionary, obj); |
+assertTrue(obj.length == 100000); |
// Verify that cross context calls work |
var realmA = Realm.current(); |