(only_holes)
| 34 | // optimized code. |
| 35 | (function() { |
| 36 | var nothingThere = function(only_holes) { |
| 37 | var a = [1,2,,3]; // holey smi array. |
| 38 | if (only_holes) { |
| 39 | a = [,,,]; // also a holey smi array. |
| 40 | } |
| 41 | return a.reduce((r,v,i,o)=>r+v); |
| 42 | }; |
| 43 | %PrepareFunctionForOptimization(nothingThere); |
| 44 | nothingThere(); |
| 45 | nothingThere(); |
no test coverage detected