1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/parallel/createthis.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +load(libdir + "parallelarray-helpers.js"); 1.5 + 1.6 +function FooStatic(i) { 1.7 + this.i = i; 1.8 +} 1.9 + 1.10 +function testCreateThisWithTemplate() { 1.11 + assertArraySeqParResultsEq( 1.12 + range(0, minItemsTestingThreshold), 1.13 + "map", 1.14 + function (i) { 1.15 + var o = new FooStatic(i); 1.16 + return o.i; 1.17 + }); 1.18 +} 1.19 + 1.20 +if (getBuildConfiguration().parallelJS) { 1.21 + testCreateThisWithTemplate(); 1.22 +}