(only_holes)
| 38 | // optimized code. |
| 39 | (function() { |
| 40 | var nothingThere = function(only_holes) { |
| 41 | var a = [1, 2, , 3]; // holey smi array. |
| 42 | if (only_holes) { |
| 43 | a = [ |
| 44 | , |
| 45 | , |
| 46 | , |
| 47 | ]; // also a holey smi array. |
| 48 | } |
| 49 | return a.reduceRight((r, v, i, o) => r + v); |
| 50 | }; |
| 51 | ; |
| 52 | %PrepareFunctionForOptimization(nothingThere); |
| 53 | nothingThere(); |
no outgoing calls
no test coverage detected