| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <iframe srcdoc="<script></script>"> |
| function id(x) { return x; } |
| [Array.prototype.concat, []], |
| [Array.prototype.slice, [1,2]], |
| [Array.prototype.splice, []], |
| [Array.prototype.splice, [0,1]], |
| [Array.prototype.map, [id]], |
| [Array.prototype.filter, [id]] |
| let otherArray = frames[0].Array(10); |
| function testFunction(testArgs) { |
| let [func, args] = testArgs; |
| result = func.call(otherArray, ...args); |
| shouldBeTrue("result instanceof Array"); |
| testFunctions.forEach(testFunction); |
| Array[Symbol.species] = false; |
| testFunctions.forEach(testFunction); |
| <script src="../resources/js-test-post.js"></script> |