(resolve)
| 122 | const thenable = { |
| 123 | pings: [], |
| 124 | then(resolve) { |
| 125 | if (newRecord.status === 'pending') { |
| 126 | thenable.pings.push(resolve); |
| 127 | } else { |
| 128 | Promise.resolve().then(() => resolve(newRecord.value)); |
| 129 | } |
| 130 | }, |
| 131 | }; |
| 132 | |
| 133 | const newRecord = { |