(long a, long b)
| 349 | } |
| 350 | |
| 351 | public static long modulo(long a, long b) { |
| 352 | // because Java modulo doesn't deal with negatives the way the |
| 353 | // javascript spec assumes it should. |
| 354 | return (a % b + b) % b; |
| 355 | } |
| 356 | |
| 357 | public static Long toInt32(ExecutionContext context, Object o) { |
| 358 | Number number = toNumber(context, o); |