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, "name"); | ||||
9 | assert(p.enumerable === false); | ||||
10 | assert(p.writable === false); | ||||
11 | assert(p.configurable === true); | ||||
12 | assert(p.value === "BigInt"); | ||||
13 |