ticaiolima@gmail.com | bef4439 | 2018-01-02 23:38:36 +0000 | [diff] [blame] | 1 | //@ runBigIntEnabled |
2 | |||||
3 | function assert(a) { | ||||
4 | if (!a) | ||||
5 | throw new Error("Bad assertion"); | ||||
6 | } | ||||
7 | |||||
8 | let p = Object.getOwnPropertyDescriptor(BigInt.prototype, "constructor"); | ||||
9 | |||||
10 | assert(p.writable === true); | ||||
11 | assert(p.enumerable === false); | ||||
12 | assert(p.configurable === true); | ||||
13 | assert(p.value === BigInt); | ||||
14 |