(low, high)
| 40 | // immutable 64-bit integer |
| 41 | export class Int { |
| 42 | constructor(low, high) { |
| 43 | if (high === undefined) { |
| 44 | this._u32 = new Uint32Array(lohi_from_one(low)); |
| 45 | return; |
| 46 | } |
| 47 | |
| 48 | if (check_not_in_range(low)) { |
| 49 | throw TypeError(`low not a 32-bit integer: ${low}`); |
| 50 | } |
| 51 | |
| 52 | if (check_not_in_range(high)) { |
| 53 | throw TypeError(`high not a 32-bit integer: ${high}`); |
| 54 | } |
| 55 | |
| 56 | this._u32 = new Uint32Array([low, high]); |
| 57 | } |
| 58 | |
| 59 | get lo() { |
| 60 | return this._u32[0]; |
nothing calls this directly
no test coverage detected