js/src/jit-test/tests/basic/bug683140.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.

     2 var g = newGlobal("same-compartment");
     3 g.eval("this.f = function(a) {" +
     4        "assertEq(a instanceof Array, false);" +
     5        "a = Array.prototype.slice.call(a);" +
     6        "assertEq(a instanceof Array, true); }");
     7 g.f([1, 2, 3]);
     9 var g2 = newGlobal();
    10 g2.a = g2.Array(10);
    11 assertEq(g2.a instanceof Array, false);
    12 g2.a = Array.prototype.slice(g2.a);
    13 assertEq(g2.a instanceof Array, true);

mercurial