1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/parallel/bug944975.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +if (getBuildConfiguration().parallelJS) { 1.5 + var map_toSource_called = false; 1.6 + var mapPar_toSource_called = false; 1.7 + 1.8 + Array.prototype.mapPar.toSource = function() { 1.9 + mapPar_toSource_called = true; 1.10 + }; 1.11 + 1.12 + Array.prototype.map.toSource = function() { 1.13 + map_toSource_called = true; 1.14 + }; 1.15 + 1.16 + try { new Array.prototype.mapPar; } catch (e) {} 1.17 + try { new Array.prototype.map; } catch (e) {} 1.18 + 1.19 + assertEq(map_toSource_called, mapPar_toSource_called); 1.20 +}