author | Felix S. Klock II <pnkfelix@pnkfx.org> |
Fri, 07 Feb 2014 17:56:45 +0100 | |
changeset 167504 | 24ad87cccbe5ce0cdb8b94991917b1226477d9e1 |
parent 167503 | 6df8e0c99c787b6f1826f026b36e80a185c2c602 |
child 167505 | d2afdb4177dd84980ecf89370aaa68f9e34f8f01 |
push id | 39480 |
push user | fklock@mozilla.com |
push date | Fri, 07 Feb 2014 16:57:26 +0000 |
treeherder | mozilla-inbound@24ad87cccbe5 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | shu |
bugs | 944975 |
milestone | 30.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
new file mode 100644 --- /dev/null +++ b/js/src/jit-test/tests/parallel/bug944975.js @@ -0,0 +1,17 @@ +if (getBuildConfiguration().parallelJS) { + var map_toSource_called = false; + var mapPar_toSource_called = false; + + Array.prototype.mapPar.toSource = function() { + mapPar_toSource_called = true; + }; + + Array.prototype.map.toSource = function() { + map_toSource_called = true; + }; + + try { new Array.prototype.mapPar; } catch (e) {} + try { new Array.prototype.map; } catch (e) {} + + assertEq(map_toSource_called, mapPar_toSource_called); +}