Index: test/mjsunit/delete.js |
diff --git a/test/mjsunit/delete.js b/test/mjsunit/delete.js |
index 8d4636af45023e1f5e6978c5293d9dbed0000bee..20fa6bfb676288e5baecf43bd2b44ee150bfaf76 100644 |
--- a/test/mjsunit/delete.js |
+++ b/test/mjsunit/delete.js |
@@ -178,3 +178,17 @@ function load_a(x) { |
} |
load_deleted_property_using_IC(); |
+ |
+ |
+(function deleteLargeDoubleArrayAtEnd() { |
+ var o = {}; |
+ var max = 100000; |
+ for (var i = 0; i <= max; i++) { |
+ o[i] = 1.1; |
+ } |
+ delete o[max]; |
+ for (var i = 0; i < max; i++) { |
+ assertEquals(1.1, o[i]); |
+ } |
+ assertEquals(undefined, o[max]); |
+})(); |