Fix sign of number remainder (ecma_op_number_remainder).

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
This commit is contained in:
Ruben Ayrapetyan authored and Evgeny Gavrin committed 2015-07-13 19:21:46 +03:00
1 parent f8770020f7
commit c84d31ce9e
2 files changed
+14 -1

No files matched your search

+5
View File
@@ -32,3 +32,8 @@ assert((number % 79) == 2);
var num1 = 1234567, num2 = 1234000;
assert((num1 % num2) == 567);
assert (1 / (-1 % -1) < 0);
assert (1 / (-1 % 1) < 0);
assert (1 / (1 % -1) > 0);
assert (1 / (1 % 1) > 0);