12 lines
256 B
JavaScript
12 lines
256 B
JavaScript
|
function assert(a) {
|
||
|
if (!a)
|
||
|
throw new Error("Bad assertion");
|
||
|
}
|
||
|
|
||
|
let p = Object.getOwnPropertyDescriptor(BigInt, "length");
|
||
|
assert(p.enumerable === false);
|
||
|
assert(p.writable === false);
|
||
|
assert(p.configurable === true);
|
||
|
assert(p.value === 1);
|
||
|
|