blob: e818de71e8ab2a7642d0fe8c9b2a2e60e6e8e54e [file] [log] [blame]
function assert(a) {
if (!a)
throw new Error("Bad assertion");
}
(() => {
let p = Object.getOwnPropertyDescriptor(BigInt, "asUintN");
assert(p.enumerable === false);
assert(p.configurable === true);
assert(p.writable === true);
})();
(() => {
let p = Object.getOwnPropertyDescriptor(BigInt, "asIntN");
assert(p.enumerable === false);
assert(p.configurable === true);
assert(p.writable === true);
})();