michael@0: if (getBuildConfiguration().parallelJS) { michael@0: var map_toSource_called = false; michael@0: var mapPar_toSource_called = false; michael@0: michael@0: Array.prototype.mapPar.toSource = function() { michael@0: mapPar_toSource_called = true; michael@0: }; michael@0: michael@0: Array.prototype.map.toSource = function() { michael@0: map_toSource_called = true; michael@0: }; michael@0: michael@0: try { new Array.prototype.mapPar; } catch (e) {} michael@0: try { new Array.prototype.map; } catch (e) {} michael@0: michael@0: assertEq(map_toSource_called, mapPar_toSource_called); michael@0: }