summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/BigInt/mod.js
blob: 2d7bde046276c4ec94f9485aec6ea7529f96cc22 (plain)
1
2
3
4
5
6
7
8
// Any copyright is dedicated to the Public Domain.
// https://creativecommons.org/licenses/publicdomain/

// Check that |x % x| returns zero when |x| contains multiple digits
assertEq(0x10000000000000000n % 0x10000000000000000n, 0n);
assertEq(-0x10000000000000000n % -0x10000000000000000n, 0n);

reportCompare(true, true);