(int)
| 537 | } |
| 538 | |
| 539 | static fromInt(int) { |
| 540 | assert(typeof int === 'number'); |
| 541 | |
| 542 | if (int >= -1 && int <= 16) |
| 543 | return common.small[int + 1]; |
| 544 | |
| 545 | const num = ScriptNum.fromNumber(int); |
| 546 | |
| 547 | return Stack.fromNum(num); |
| 548 | } |
| 549 | |
| 550 | static toBool(item) { |
| 551 | assert(Buffer.isBuffer(item)); |
no test coverage detected