js/src/jit-test/tests/parallel/bug977647.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/parallel/bug977647.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +// Check for mapPar() applied to an empty array.
     1.5 +// Public domain.
     1.6 +
     1.7 +if (!this.hasOwnProperty("TypedObject"))
     1.8 +  quit();
     1.9 +
    1.10 +var { ArrayType, StructType, uint32 } = TypedObject;
    1.11 +var Point = new StructType({x: uint32, y: uint32});
    1.12 +var Points = Point.array();
    1.13 +var points = new Points();
    1.14 +points.mapPar(function() {});
    1.15 +

mercurial