1db16c3a1c
Math.round(x) should be x it x is already integer. (ES5 15.8.2.15) The current implementation calculates with x +/- 0.5, which isn't representable numbers if x >= 2^52. A correct bug fix can be to follow the spec and simply return the number itself if it is already integer. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu