(s)
| 117 | } |
| 118 | |
| 119 | function inspect(s) { |
| 120 | for (let k of Reflect.ownKeys(s)) { |
| 121 | // Attempting to print either of: |
| 122 | // 'Reflect.get(s, k)', 'typeof Reflect.get(s, k)', 's[k]' |
| 123 | // might throw: "Error: Object does not have a size", |
| 124 | // while 'typeof s[k]' returns 'undefined' and prints the full list of |
| 125 | // properties. Oh well... |
| 126 | print(`${k} => ${typeof s[k]}`); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | function hex(number) { |
| 131 | return `0x${number.toString(16)}`; |
no test coverage detected
searching dependent graphs…