summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/bigint.js
blob: f15d0f317a3fa9060872f5065d55477af7cb4b08 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: !('BigInt' in this)
load(libdir + 'bytecode-cache.js');

let test = `
  assertEq(2n**64n - 1n, BigInt("0xffffFFFFffffFFFF"));
`;
evalWithCache(test, {
  assertEqBytecode: true,
  assertEqResult : true
});