8044638: Tidy up Nashorn codebase for code standardsReviewed-by: lagergren, sundar
8011974: Comparator function returning negative and positive Infinity does not work as expected with Array.prototype.sortReviewed-by: hannesw, lagergren