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

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     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