8044638: Tidy up Nashorn codebase for code standardsReviewed-by: lagergren, sundar
8011394: RegExp.prototype.test() does not call valueOf on lastIndex property as per the spec.Reviewed-by: lagergren, jlaskey, hannesw