Bug 864265 - Move integer exponent check from js_math_pow to ecmaPow. r=h4writer