Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: test/mjsunit/regress/regress-delete-empty-double.js

Issue 11358011: Ensure reducing the length of an array doesn't make it go holey. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/regress/regress-delete-empty-double.js
diff --git a/test/mjsunit/regress/regress-2373.js b/test/mjsunit/regress/regress-delete-empty-double.js
similarity index 95%
copy from test/mjsunit/regress/regress-2373.js
copy to test/mjsunit/regress/regress-delete-empty-double.js
index 16a87ece6f57aee42d77171e8087db412610b0a3..b91268fea67c84d45361a60bdc0aa119ecf044cf 100644
--- a/test/mjsunit/regress/regress-2373.js
+++ b/test/mjsunit/regress/regress-delete-empty-double.js
@@ -25,5 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-var o = JSON.parse('{"a":2600753951}');
-assertEquals(2600753951, o.a);
+a = [1.1,2.2,3.3];
+a.length = 0;
+delete a[0];
danno 2012/10/31 18:23:11 assertTrue(%HasFastDoubleElements(a)); assertTrue
Toon Verwaest 2012/10/31 18:27:28 Are you sure this should be holey? In my current i
danno 2012/10/31 20:15:09 You're right. How about a second case that verifie
« test/mjsunit/elements-length-no-holey.js ('K') | « test/mjsunit/elements-length-no-holey.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698