deepEqual-primitives-bigint.js (469B)
1 // Copyright 2019 Ron Buckton. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 description: > 6 primitive BigInt values compare correctly. 7 features: [BigInt] 8 includes: [deepEqual.js] 9 ---*/ 10 11 assert.deepEqual(1n, 1n); 12 assert.deepEqual(Object(1n), 1n); 13 14 assert.throws(Test262Error, function () { assert.deepEqual(1n, 1); }); 15 assert.throws(Test262Error, function () { assert.deepEqual(1n, 2n); }); 16 17 reportCompare(0, 0);