js/src/jit-test/tests/basic/splice-call-plain-object-590780.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 var o = { 0: 1, 1: 2, 2: 3, length: 3 };
     2 Array.prototype.splice.call(o, 0, 1);
     4 assertEq(o[0], 2);
     5 assertEq(o[1], 3);
     6 assertEq(Object.getOwnPropertyDescriptor(o, 2), undefined);
     7 assertEq("2" in o, false);
     8 assertEq(o.length, 2);

mercurial